web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Multiple tables and combine to make a data entity

(0) ShareShare
ReportReport
Posted on by 45

Hi Team,

 Appreciate someone can assist on the below queries.

 I am beginner in D365 development. Now there is a requirement to collect the data from multiple tables and combine (by join, union) to make a data entity to build Power Bi report.

 I am getting the below error while building the solution. Kindly assist.

Query Design

2273.pastedimage1666777380799v3.png

Error message

4174.pastedimage1666776930013v1.png

I have the same question (0)
  • Martin Dráb Profile Picture
    236,289 Most Valuable Professional on at
    RE: Multiple tables and combine to make a data entity

    Moved from Dynamics 365 General Forum because it seems to be about F&O.

    The problem is that your query has multiple root queries. You should have just one, and add joined data sources to its (nested) Data Sources node.

  • Bibin TV Profile Picture
    45 on at
    RE: Multiple tables and combine to make a data entity

    Thank you for the quick reply, is there a way can make union with same table as below. kindly advise the best way to achieve this.

    Sample in SQL

    pastedimage1666782840091v2.png

  • Martin Dráb Profile Picture
    236,289 Most Valuable Professional on at
    RE: Multiple tables and combine to make a data entity

    Yes, union queries are supported and you can use the same table several times in the same query (with different data source names).

  • Bibin TV Profile Picture
    45 on at
    RE: Multiple tables and combine to make a data entity

    Sorry Martin, Still I'm not clear with this solution. Kindly help.

    Step-1(Query made with different data sets by referring same table)

    pastedimage1666786502695v1.png

    Step-2(To create view with the Query (GFNProductCategoryGroupingQuery) there I'm stuck.
    pastedimage1666786788067v2.png

  • Martin Dráb Profile Picture
    236,289 Most Valuable Professional on at
    RE: Multiple tables and combine to make a data entity

    Just saying that you created a query or a view is insufficient. There is a lot of important configuration. Mosty importantly, if you want a union query, you need to set its Query Type to Union.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,188

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 868 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 593 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans