Forum Discussion
Steels_Cat
4 years agoHelper I
Week Over Week measure problem
Hello All, I have been working on project where i have to find difference between weeks: I have created this measure but does not calculate properly the difference between those two weeks. ...
V-lianl-msft
4 years agoCommunity Support
Please try :
ComplinaceMoM%Week =
VAR CurrentYearWeekNumber = SELECTEDVALUE ( 'Date'[Week_Number]) (conteins week numbers 1,2,3,4...)
VAR PreviousYearWeekNumber = CurrentYearWeekNumber - 1
VAR Result =
CALCULATE (
[Compliance](this is a measure ) ,
FILTER (ALL ( 'Date' ),
'Date'[Week_Number] = PreviousYearWeekNumber
)
RETURN
[Compliance]-Result
If the problem still exists, could you provide a sample pbix file after removing sensitive data.