Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Getting running total on matrix where date is header

Hi everyone,   I would like to ask for another help regarding a running total of values in a matrix. Please see below image.   I tried to use a cummulative calculations and have tried sever...
  • Padycosmos's avatar
    Padycosmos
    3 years ago
    You can try the following wherein I have included partition by department and changed the expression slightly. hope this works:
    **bleep** total = SUMX(WINDOW(0,ABS,0,REL,SUMMARIZE(ALLSELECTED('Table'),'Table'[Date].[Year],'Table'[Date].[Month],'Table'[Date].[MonthNo],'Table'[Department]),ORDERBY('Table'[Date].[Year],ASC,'Table'[Date].[MonthNo],ASC),KEEP,PARTITIONBY('Table'[Department])),CALCULATE(SUM('Table'[MRR])))