Forum Discussion
MrCee
7 years agoRegular Visitor
DAX Measure - A Cumulative Running Total which returns a DATE when Target is achieved
Hi community, Without using calculated columns as I would like to be able to pivot by project in Power BI using measures, I need to find a way to extract the exact date when the cumulative runni...
- 7 years ago
marcorusso
Most Valuable Professional
5 years agoDo you want this?
FirstDateTargetReached =
MINX (
DISTINCT ( Test[ID] ),
CALCULATE (
VAR TargetRunningTotal = 325
VAR FirstDateOverTarget =
FIRSTNONBLANK ( Test[Date], IF ( [Running total] >= TargetRunningTotal, 1 ) )
RETURN
FirstDateOverTarget
)
)BastiaanBrak
Helper IV
5 years agomarcorusso just wanted to say thanks again! I modified your DAX solution for my specific use case. ICYMBI, the report is published here: Willow-carrot aphid migration forecast tool | AHDB