Forum Discussion
M_SBS_6
Helper V
2 years agoSecond latest Date
Hi, I have the following measure which pulls the value based on the max date. Measure= Calculate (sum( app[val], filter(app[date] = MAX (app[date]))) This brings back 01/12/2023. The pr...
- 2 years ago
Try this
Measure = VAR _Datesecond = MINX(TOP(2,ALL('app'[Date]),'app'[Date],DESC),'table'[Date]) RETURN CALCULATE(sum(app[val]),FILTER(ALL('app'),'app'[Date]=_Datesecond))
miTutorials
Super User
2 years agoPlease try the below measure.
Second_Max_Date =
VAR MAX_ = CALCULATE(MAX('Table (4)'[Date]))
Return CALCULATE(MAX('Table (4)'[Val]),
'Table (4)'[Date] < MAX_)