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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Append in DAX

Is there a simple way i can append two tables via creating a new table in DAX. I dont want to do the append in Query editor. Is there a way of doing that in the the front end of the report with New Table. I can't use UNION as the column names dont match

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

You can union them after getting the column names matched up with SELECTCOLUMNS.

 

For example,

Appended =
UNION (
    SELECTCOLUMNS ( Table1, "A", Table1[Col1], "B", Table1[Col2] ),
    SELECTCOLUMNS ( Table2, "A", Table2[aCol], "B", Table2[bCol] )
)

This will return a table with columns [A] and [B] even though Table1 and Table2 did not have such column names.

View solution in original post

1 REPLY 1
AlexisOlson
Super User
Super User

You can union them after getting the column names matched up with SELECTCOLUMNS.

 

For example,

Appended =
UNION (
    SELECTCOLUMNS ( Table1, "A", Table1[Col1], "B", Table1[Col2] ),
    SELECTCOLUMNS ( Table2, "A", Table2[aCol], "B", Table2[bCol] )
)

This will return a table with columns [A] and [B] even though Table1 and Table2 did not have such column names.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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