Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
KWelsh8144
Helper II
Helper II

Combining data from two different tables

Hi, I'm currently using Direct Query (and cannot change to import since it needs to be live) and cannot figure out how to get the data to display the way I need it to.

 

I have two tables that are joined by the ID. One of the tables lists projects and the other table lists the tasks associated with the projects.

 

For example, project 1 may have 5 tasks associated with it. I'm looking to design a table that lists the projects but with the tasks inserted (indented) under the project.

 

Is this possible?

 

Thanks!

1 ACCEPTED SOLUTION
KWelsh8144
Helper II
Helper II

I managed to this to work by starting over. I had added one column to the table, so i'm not sure if  that's what was holding this up or what, but i did manage to get this to work.

 

Thanks for your help!

View solution in original post

7 REPLIES 7
KWelsh8144
Helper II
Helper II

I managed to this to work by starting over. I had added one column to the table, so i'm not sure if  that's what was holding this up or what, but i did manage to get this to work.

 

Thanks for your help!

Anonymous
Not applicable

@KWelsh8144,

Could you please post the T-SQL statements that you use to create the tables so that I can repro? Also we need to know what other transformations you made in Power BI Desktop Query Editor .

Regards,
Lydia

KWelsh8144
Helper II
Helper II

@Anonymous I am using the October 2018 version. I originally had it as the highlighted option: Merge Queries as New. I tried it using Merge Queries and I receive the message below.Capture.PNG

 

 

Anonymous
Not applicable

@KWelsh8144,

What version of Power BI Desktop do you use? Do you merge into a new query using the highlighted option below? If so, switch  to use merge queries option. If the issue still persists, please share the T-sql you use to create the two tables so that I can test.

1.PNG

Regards,
Lydia

KWelsh8144
Helper II
Helper II

Capture.PNG

 

I am receiving this error when i close & apply. What can I do to get passed this? @Anonymous

Anonymous
Not applicable

 
Anonymous
Not applicable

@KWelsh8144,

You can merge the two queries in Power BI Desktop query editor based on ID, for more details, please review this blog:http://radacad.com/append-vs-merge-in-power-bi-and-power-query.

Regards,
Lydia

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.