Forum Discussion
setis
Post Partisan
3 years agoUsing ALL for last year
Hi experts, I'm calculating the weight of the number of cases on each day of the month like this: I have 2 questions. 1.- How can I calculate on a measure on the same table the [Weight da...
setis
Post Partisan
3 years agoGreg_Deckler It looks correct, but I´m getting 100% on all rows.
Greg_Deckler
Community Champion
3 years agosetis The scintillating joy of CALCULATE. What is your Cases measure? The formula? Could maybe try this:
Measure =
VAR __Date = MAX('Date'[Date])
VAR __LYDate = DATE(YEAR(__Date)-1,MONTH(__Date),DAY(__Date))
RETURN
CALCULATE([Weight day on month],ALL('Date'), 'Date'[Date] = __LYDate)