Forum Discussion
miikasa
2 years agoFrequent Visitor
Accumulated Values in a bar chart
Hi guys, I have this measure which is linked to a calendar table: SalesIndex = DIVIDE( [SalesAmount], [AverageCurrentMonthPreviousMonth], 0 ) Calendar = CALENDAR(DAT...
- 2 years ago
Hi miikasa
Could you try:
Running total =
Calculate(
[SalesIndex], Calendar[Date] <= Max(Calendar[Date]) --Filter to less than the current max
, Year(Calendar[Date]) = Year(Max(Calendar[Date])) --keep in the same year
)
SamWiseOwl
Super User
2 years agoHi miikasa
Could you make a mock up of what you have and what you want please 🙂
miikasa
2 years agoFrequent Visitor
Hi SamWiseOwl.
Sure!
This is what I have:
And this is what I want:
The x-axis data I built with this formula:
Calendar = CALENDAR(DATE(2022,01,01),TODAY())
And the y-axis I built with this measure:
SalesIndex =
DIVIDE(
[SalesAmount],
[AverageCurrentMonthPreviousMonth],
0
)
Appreciate your help. 😊
- SamWiseOwl2 years ago
Super User
Hi miikasa
Could you try:
Running total =
Calculate(
[SalesIndex], Calendar[Date] <= Max(Calendar[Date]) --Filter to less than the current max
, Year(Calendar[Date]) = Year(Max(Calendar[Date])) --keep in the same year
)- miikasa2 years agoFrequent Visitor