We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
There are two table i.e
table1
| area | number |
| 1 | 909 |
| 2 | 908 |
| 3 | 907 |
| 6 | 897 |
| 4 | 876 |
| 5 | 878 |
and table2
| area | number |
| 9 | 441 |
| 10 | 232 |
| 5 | 3423 |
| 2 | 233 |
| 11 | 1213 |
| 12 | 234 |
required calculated table is
| area | number |
| 1 | 909 |
| 2 | 233 |
| 3 | 907 |
| 6 | 897 |
| 4 | 876 |
| 5 | 3423 |
| 9 | 441 |
| 10 | 232 |
| 11 | 1213 |
| 12 | 234 |
update the old data(table1) with the new data(table2) on power bi desktop
Thank & regrads
Biswajit
Solved! Go to Solution.
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)
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)
Hi.
You should go to power query / transform
Then select APPEND QUERIES
and choose this way in picture
But appending both tables cause duplicates entries of both tables
I just need to take the recent records based on area not all the
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.
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!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 38 | |
| 32 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 66 | |
| 66 | |
| 40 | |
| 34 | |
| 25 |