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!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hi pros,
I have 2 tables like
- 'Current' table:
| NAME | CUR | TYPE |
| a | usd | on |
| b | eur | off |
| c | jap | on |
- '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:
| NAME | CUR | TYPE |
| a | usd | on |
| b | eur | off |
| c | jap | on |
| d | ||
| e |
Thank you very much for your help.
Solved! Go to 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:
For the related .pbix file,pls see attached.
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
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:
For the related .pbix file,pls see attached.
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
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.
@navafolk , Append in power query
refer for steps: https://radacad.com/append-vs-merge-in-power-bi-and-power-query
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/
It is just awesome. I stuck at creating null column in DAX. Big thanks.
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 60 | |
| 49 | |
| 30 | |
| 25 | |
| 23 |
| User | Count |
|---|---|
| 130 | |
| 103 | |
| 58 | |
| 39 | |
| 31 |