Forum Discussion
Ajaal
2 years agoHelper I
Previous date's value
How do I create a measure that calculates and retrives the average of previous date values whenever the new data's corresponding values are added to the underlying dataset of the report? I wanna use ...
Ajaal
2 years agoHelper I
Ashish_Mathur
2 years agoSuper User
Hi,
Use this measure
Production in latest previous month = CALCULATE(SUM(Data[Prodction]),CALCULATETABLE(LASTNONBLANK('Calendar'[Date],CALCULATE(sum(Data[Prodction]))),DATESBETWEEN('Calendar'[Date],minx(ALL('Calendar'),'Calendar'[Date]),[Last available date]-1)))
Hope this helps.