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

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

Reply
navafolk
Helper IV
Helper IV

Merging column to current table column (without adding new column)

Hi pros,

I have 2 tables like

- 'Current' table:

NAMECURTYPE
ausdon
beuroff
cjapon

 

- 'New' table:

NAME
a
d
e

 

How could I merge data from 'New'[NAME] to 'Current'[NAME] without adding new column in DAX? Leave other columns of 'Current' blank for those added from 'New' that 'New' does not mention about. For [NAME] appears in both tables, 'Current' table is pioritized. My expected merging would be:

NAMECURTYPE
ausdon
beuroff
cjapon
d  
e  

 

Thank you very much for your help.

1 ACCEPTED SOLUTION

Hi  @navafolk ,

 

Create a calculated table using below expression:

Table = 
var _tab=CALCULATETABLE(VALUES('Current'[NAME]),FILTER('Current','Current'[NAME]<>BLANK()))
Return
 ADDCOLUMNS(UNION(_tab,EXCEPT(VALUES('New'[NAME]),VALUES('Current'[NAME]))),"CUR",CALCULATE(MAX('Current'[CUR]),FILTER('Current','Current'[NAME]=EARLIER('Current'[NAME]))),"TYPE",CALCULATE(MAX('Current'[TYPE]),FILTER('Current','Current'[NAME]=EARLIER('Current'[NAME]))))

And you will see:

v-kelly-msft_0-1615359172888.png

 

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

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

View solution in original post

7 REPLIES 7
navafolk
Helper IV
Helper IV

Anyone, please help.

Hi  @navafolk ,

 

Create a calculated table using below expression:

Table = 
var _tab=CALCULATETABLE(VALUES('Current'[NAME]),FILTER('Current','Current'[NAME]<>BLANK()))
Return
 ADDCOLUMNS(UNION(_tab,EXCEPT(VALUES('New'[NAME]),VALUES('Current'[NAME]))),"CUR",CALCULATE(MAX('Current'[CUR]),FILTER('Current','Current'[NAME]=EARLIER('Current'[NAME]))),"TYPE",CALCULATE(MAX('Current'[TYPE]),FILTER('Current','Current'[NAME]=EARLIER('Current'[NAME]))))

And you will see:

v-kelly-msft_0-1615359172888.png

 

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

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

navafolk
Helper IV
Helper IV

Hi @amitchandak, just one more question, in case [NAME] appears in both tables, can we make 'Current' table pioritized?

It is something like NATURALLEFTOUTERJOINT, but these 'Current' and 'New' has no relationship. Thank you.

amitchandak
Super User
Super User

@navafolk , Append in power query

refer for steps: https://radacad.com/append-vs-merge-in-power-bi-and-power-query

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you @amitchandak, sorry for my unclear, but I am seeking this within DAX.

@navafolk , a new table like 

Union(Table1, selectcolumns(Table2, Table2[Name], "CUR", "", "TYPE", "")

 

or

 

Union(Table1, selectcolumns(Table2, Table2[Name], "CUR", blank() , "TYPE", blank())

 

Also refer: https://www.sqlbi.com/articles/from-sql-to-dax-joining-tables/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

It is just awesome. I stuck at creating null column in DAX. Big thanks.

Helpful resources

Announcements
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 Kudoed Authors