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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
BIswajit_Das
Super User
Super User

Power bi Calculated table

There are two table i.e

table1

areanumber
1909
2908
3907
6897
4876
5878

and table2

areanumber
9441
10232
53423
2233
111213
12234

required calculated table is

areanumber
1909
2233
3907
6897
4876
53423
9441
10232
111213
12234

update the old data(table1) with the new data(table2) on power bi desktop

Thank & regrads
Biswajit

1 ACCEPTED SOLUTION
BIswajit_Das
Super User
Super User

Found a solution :-

Z_TABLE =
VAR _old =
FILTER (
'table1',
'table1'[AC_NO - Copy]
<>CALCULATE (
SELECTEDVALUE('table2'[AC_NO - Copy]),
ALLEXCEPT (
'table1','table1'[AC_NO - Copy]
)
)
)
VAR _new = 'table2'
RETURN
UNION(_old,_new)

View solution in original post

7 REPLIES 7
BIswajit_Das
Super User
Super User

Found a solution :-

Z_TABLE =
VAR _old =
FILTER (
'table1',
'table1'[AC_NO - Copy]
<>CALCULATE (
SELECTEDVALUE('table2'[AC_NO - Copy]),
ALLEXCEPT (
'table1','table1'[AC_NO - Copy]
)
)
)
VAR _new = 'table2'
RETURN
UNION(_old,_new)

mrcss23
Advocate IV
Advocate IV

Hi.

You should go to power query / transform

Then select APPEND QUERIES

and choose this way in picture

Untitled.png

But appending both tables cause duplicates entries of both tables

BIswajit_Das
Super User
Super User

I just need to take the recent records based on area not all the

BIswajit_Das
Super User
Super User

Thank you for responding but

isn't appending both table combines all the records old+new

 

After the suggested step, the table 1 will have added all the record of table 2.

You you then use table 1 because it will have the full records.

mh2587
Super User
Super User

Just Append both the tables in Power Query it will resolve your problem


Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.