Forum Discussion

Zkna-M's avatar
Zkna-M
Frequent Visitor
9 years ago
Solved

running sum grouped by probablity

I am trying to add a new measure that can calulate cumulative total of value of an item and summarise it on based on probablity. This is the data that I have   Item Value Probablity 4 64 ...
  • Vvelarde's avatar
    9 years ago

    Zkna-M

     

    hi friend

     

    First, Create a new Table (Modeling Enter Data)

     

     

    2. Related Both Table 

     

    3. Create a New Measure

     

    SumValues =
    CALCULATE (
        SUM ( Table1[Value] ),
        FILTER (
            ALLEXCEPT ( Table1; Table1[Item] ),
            Table1[Probablity] >= MAX ( Probabilities[Probability] )
        )
    )
        + 0

    4. Ready. You can view in a Matrix