Forum Discussion

facilitydax's avatar
facilitydax
Frequent Visitor
6 years ago
Solved

Struggling with a Running Total Measure

I've been struggling with a Running Total measure for a while now.  The problem is that most examples of running total measures that are out there have to do with using a "column" as the sorting mech...
  • AlB's avatar
    AlB
    6 years ago

    Hi facilitydax 

    Try this. See it all at work in the attached file.

    Running Total 2 = 
    VAR currank2 = [RankTest]
    RETURN
        CALCULATE (
            SUMX(Asset; [RM]);
            FILTER(ALL(Asset); [RankTest] <= currank2)
    )

     

    Please mark the question solved when done and consider giving kudos if posts are helpful.

    Cheers  Datanaut