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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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