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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Need help combining multiple tables into one.

Hello,

 

I need help in combining multiple tables into one.

 

Below are my sample tables.

burrito_0-1706708174059.png

 

I need to generate a new table like below. I need the 1st column to be the title of the table where the data came from and the second column being the "Name" from the 3 tables I have.

burrito_1-1706708242325.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

Please try to create a new table with below dax formula:

Table =
VAR tmp1 =
    SELECTCOLUMNS ( Table1, "Table", "Table 1", "Name", [Name] )
VAR tmp2 =
    SELECTCOLUMNS ( Table2, "Table", "Table 2", "Name", [Name] )
VAR tmp3 =
    SELECTCOLUMNS ( Table3, "Table", "Table 3", "Name", [Name] )
RETURN
    UNION ( tmp1, tmp2, tmp3 )

vbinbinyumsft_0-1706755925690.png

 

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Anonymous ,

Please try to create a new table with below dax formula:

Table =
VAR tmp1 =
    SELECTCOLUMNS ( Table1, "Table", "Table 1", "Name", [Name] )
VAR tmp2 =
    SELECTCOLUMNS ( Table2, "Table", "Table 2", "Name", [Name] )
VAR tmp3 =
    SELECTCOLUMNS ( Table3, "Table", "Table 3", "Name", [Name] )
RETURN
    UNION ( tmp1, tmp2, tmp3 )

vbinbinyumsft_0-1706755925690.png

 

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

This worked for me, thanks!

amustafa
Solution Sage
Solution Sage

Once you import each table in Power Query, use Append Query as new option. See this video as a reference: How to COMBINE DATA with MERGE and APPEND in Power BI (youtube.com)





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thanks for the link. It really helped me.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.

Top Solution Authors
Top Kudoed Authors