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

Notifications

Announcements

No record found.

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
    237,961 Most Valuable Professional on at

    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

    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
    237,961 Most Valuable Professional on at

    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

    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
    237,961 Most Valuable Professional on at

    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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 592 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 305 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans