Forum Discussion
Running Total per week/month
- 2 years ago
Nero_Carbone Perhaps one of these can help:
Thanks for leading me on the right direction Greg_Deckler !
In the end i managed to accomplish what i needed with the following:
ActualsRunningTotal:=SUMX(FILTER(ALLSELECTED(Actuals),
'Actuals'[Date (Month Index)]=MAX(Months[MonthNum])&&
Actuals[WeekID]<=MAX(WeekID[WeekID])&&
YEAR(Actuals[Date])=MAX(WeekID[Year])),Actuals[CU])
I didn`t need to adapt the structure of the data model.
EDIT:
One more question please: despite using ALLSELECTED, it seems like the values don`t change when additional filters are applied to the context (e.g. adding the suppliers on the rows).
Before filters:
After detailing supplier:
How can i fix it please?
- Greg_Deckler2 years ago
Community Champion
Nero_Carbone Difficult to say. I would make sure that the proper relationships exist first. Often, when you see repeated values in a table it is the result of a missing or incorrect relationship.