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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
MBWATSON
Helper I
Helper I

Appending Queries with columns added through Dax

Hello! I have two tables with identical columns, three of which were added to each table using DAX. When I attempt to append them, the additional columns do not appear. Is it possible to combine the data from these tables into one including the additional columns? Thanks for your help 🙂

1 ACCEPTED SOLUTION

@MBWATSON Sure, in the Modeling tab of your ribbon, choose New table (in Report view) then just use the formula:

Combined Table = UNION('Table1', 'Table2')

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

6 REPLIES 6
Greg_Deckler
Super User
Super User

@MBWATSON Are you using UNION to append them?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler I have tried using transform data append queries. 

@MBWATSON Right, so that isn't going to work in the slightest. Power Query loads data and then DAX calculated columns are created. So, the columns don't even exist yet when you are appending the tables together. You can either add the DAX calculated columns to the appended table, or create the calculated columns in Power Query before appending or you could skip appending in Power Query and use a UNION to append the two tables together in DAX.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler thank you for that information! Nothing that I have researched has mentioned using Union in DAX. I will attempt it and let you know how it goes.

@MBWATSON Sure, in the Modeling tab of your ribbon, choose New table (in Report view) then just use the formula:

Combined Table = UNION('Table1', 'Table2')

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler that worked perfectly! Again, thank you!!

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.