Forum Discussion
ManuApo
Helper II
3 years agoStruggling to create Measure :( Please help!!
Hi community, I am really struggling to create a measure that basically shows the StatusID every day in a date calendar until it changes. My dataset has some IDs with different StatusID that chan...
Greg_Deckler
Community Champion
3 years agoManuApo Try this:
Measure =
VAR __Date = MAX('Calendar'[Date])
VAR __ID = MAX('Facts'[ID])
VAR __Last = MAXX(FILTER(ALL('Facts'),[ID] = __ID && [Date]<= __Date),[Date])
VAR __Result = MAXX(FILTER(ALL('Facts'),[ID] = __ID && [Date] = __Last),[Status])
RETURN
__Result