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
DeepakSavanur
Frequent Visitor

how do I create a table out of the differences

I have been trying to capture the log changes on a table from the previous day, so here is what i have done:

 

I import two latest file from a folder and then do left outer (all rows from both merge) and calculate the differences by adding custom column, as these files changes everyday i want to capture the rows that had a differences only on a table to create a log of changes.

 

example data

 

file 1                                                                                              file 2

 

item      cost          type                                                                item            cost            type

car        600           toy                                                                  car              899             toy

Radio    200           electronics                                                       Tv               300             electronics

mobile   300          electronics                                                      mobile         300             electronics

 

combined table 

 

item          cost          type             table2.item            table2.cost                table2.type        difference in cost        differenceitem 

car             600          toy                car                          899                          toy                           299                            0

null             null        null                 Tv                           300                         electronics               -300                           TV

radio          200        electronics      null                         null                         null                           200                            radio

mobile       300        electronics      mobile                    300                         electronics                0                                0

 

 

now here i want to create a table out of first three rows which had difference from last file and would like to append these difference everyday on a table so i have a log of changes happening everyday 

2 REPLIES 2
amitchandak
Super User
Super User

@DeepakSavanur , Are these file from two different days. If yes, You should import file and add date column and then append.

 

Or use DAX append with date added

https://blog.crossjoin.co.uk/2020/04/13/keep-the-existing-data-in-your-power-bi-dataset-and-add-new-...
https://www.thebiccountant.com/2017/01/11/incremental-load-in-powerbi-using-dax-union/

 

 

then you can use time intelligence

Day Intelligence - Last day, last non continous day
https://medium.com/@amitchandak.1978/power-bi-day-intelligence-questions-time-intelligence-5-5-5c324...

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

This doesnt work for the kind off data that i have

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.