Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Running Total in Matrix

Hi All,

 

i could able to achieve sum of ll the months.

Provided the example for "sum" of all the columns and we are showing that in right hand side.

 

Is it possible to have running total? Provided the sample output below

 

 

Thanks in Advance

Prakash

  • Hi Anonymous 

     

    Try something like this.

    Sales RT = 
    IF(
        NOT ISEMPTY( 'Table' ),
        VAR __maxDate = MAX( 'Calendar'[Date] )
        RETURN
        CALCULATE(
            [Sales],
            'Calendar'[Date] <= __maxDate,
            ALL( 'Calendar' )
        )
    )

     

    Best Regards,
    Mariusz

    If this post helps, then please consider Accepting it as the solution.

     

8 Replies