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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
robertosangi
Helper I
Helper I

Difference between two file totals

Hi everybody,

 

I have a question that could solve me many different questions about comparing two files/weeks.

Practically I have two file -> SalesPresentWeek and SalesPreviousWeek

 

Now. I need to represent in a matrix or table the delta between Present and Previous week.

 

I need to build a table like this (counting elements in Present week)

robertosangi_0-1674052992983.png

After this I need to calculate the same for the Previous week and put the delta in this table without visualize the previous week values.

 

Let assume tha UT Trapani have now 184 counts. Previuous week had 194 count. I want to see -10 in this column.
Actually I build a measure 

 

Delta_Wn-1_LFL = COUNT(Present[LCL])-COUNT(Previous[LCL])

 

but gives me wrong numbers

 

How I can do that correctly?

Thank you

0 REPLIES 0

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.