Forum Discussion
Raul
8 years agoPost Patron
Running total
Hello everybody, I have a CALENDAR table in my data model. I have too two more tables: WAREHOUSES and TARGETS: ID WAREHOUSE A Warehouse1 B Warehouse2 C Warehouse3 YEAR WA...
- 8 years ago
In looking at your data layout and calculation, I would create a MONTH column in your Calendar table and do something like:
Measure = MonthTarget * AVERAGE(Calendar[Month])
Greg_Deckler
8 years agoCommunity Champion
Have you tried the Running Total quick measure?
- Raul8 years agoPost Patron
Yes, but the result is the same value of the month target for every mont, like this:
Month Target RunningTotal January $ 416,67 $ 416,67 February $ 833,34 $ 416,67 March $ 1.250,00 $ 416,67 - Greg_Deckler8 years agoCommunity Champion
Can you post that formula?
- Raul8 years agoPost Patron
RunningTotal =
CALCULATE(
[MonthTarget];
FILTER(
ALLSELECTED('Calendar'[Month]);
ISONORAFTER('Calendar'[Month]; MAX('Calendar'[Month]); DESC)
)
)