Forum Discussion
Lewdis_
1 year agoFrequent Visitor
Running total and reference line
I am trying to build a running total for CY and PY for the month like the graph below. I would also like budget and forecast to be reference lines on the top.
- 1 year ago
solved it with your help and added a filter for current year. Then the following measures
Full year budget (one number) =CALCULATE([Total Budget],DATESINPERIOD(DimDate[Date],DATE(2024,1,01),1,YEAR))Running YTD last year =CALCULATE([Running YTD],SAMEPERIODLASTYEAR(DimDate[Date]))Running YTD =CALCULATE([Total sales],DATESYTD(DimDate[Date]))
Lewdis_
1 year agoFrequent Visitor
I have tried to use a field for running total and it works fine in the last graph where I use a date field
But if I want to show both CY and PY next to each other using Year-Month field it doesnt work