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

Announcements

No record found.

News and Announcements icon
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
    239,093 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
    239,093 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
    239,093 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 689

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 455 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 308 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans