Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Constrained Running Total

Hi all, my first post/question!    New to Power BI, enjoying learning.   I have a single table data model that has columns like this:   Stuf...Type....Value...Data...Stuff   For each "Type", ...
  • Mariusz's avatar
    6 years ago

    Hi Anonymous 

     

    Try something like this

    CumulativeX =
    CALCULATE (
        [X],
        FILTER ( 
            ALLEXCEPT( Table, Table[Type] ), 
            Table[Date] <= MAX ( Table[Date] ) 
        )
    )

     

    Best Regards,
    Mariusz

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

    Please feel free to connect with me.
    LinkedIn