Forum Discussion

niculeica's avatar
niculeica
Helper I
2 years ago
Solved

Getting Running Total in matrix, based on Measure

Hello,

 

Having some troubles calculating Running Total of a measure, in a matrix (so the running total would be based on a measure, not column). Expected result is running total being summed in the following cadence:

 

 AmountTotal
Jan1010
Feb3040
Mar60100
Q1100100
Apr30130
May25155
Jun20175
Q275175

 

The existing measure is below:

 

_Renewal amount = SUMX(SUMMARIZE(_Timeline,_Timeline[_M],"Renewal ARR",[_Renewal amount raw]),[Renewal ARR])

 

Any ideas on how this could be achieved?

 

 

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi niculeica ,

    Please have a try.

    _Renewal amount running total =
    CALCULATE (
        [_Renewal amount],
        FILTER (
            ALLSELECTED ( _Timeline[_M] ),
            ISONORAFTER ( _Timeline[_M], MAX ( _Timeline[_M] ), DESC )
        )
    )
    

     

    How to Get Your Question Answered Quickly 

     

    If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

     

    Best Regards
    Community Support Team _ Rongtie

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

     

     

     

     

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi niculeica ,

    Please have a try.

    _Renewal amount running total =
    CALCULATE (
        [_Renewal amount],
        FILTER (
            ALLSELECTED ( _Timeline[_M] ),
            ISONORAFTER ( _Timeline[_M], MAX ( _Timeline[_M] ), DESC )
        )
    )
    

     

    How to Get Your Question Answered Quickly 

     

    If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

     

    Best Regards
    Community Support Team _ Rongtie

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.