Forum Discussion
Anonymous
6 years agoNot applicable
Week Filter
Hi Does anyone know why this DAX doesnt work... Prior Week = CALCULATE([UAP's],FactNELWeekly[Previous Week No.]) UAPs = count distict measure, works fine. Previous Week No. is a number col...
- 6 years ago
So, the way that I would do this in a measure would be something along the lines of:
Prior Week = VAR __PreviousWeek = MAX('FactNELWeekly'[Previous Week No.]) RETURN CALCULATE([UAP's],FILTER('FactNELWeekly'[Week] = __PreviousWeek)
v-kelly-msft
Community Support
6 years agoHi Anonymous ,
Based on Greg_Deckler 's suggestion,the measure needs to be corrected as below:
Prior Week =
VAR __PreviousWeek = MAX('FactNELWeekly'[Previous Week No.])
RETURN
CALCULATE([UAP's],FILTER('FactNELWeekly','FactNELWeekly'[Week] = __PreviousWeek) WoW=[UPA's]-_PreviousWeek
Best Regards,
Kelly
Kelly
Did I answer your question? Mark my post as a solution!
Greg_Deckler
Community Champion
6 years agoThanks v-kelly-msft ! That's what happens when I don't actually test my DAX, I mess up some syntax!