Forum Discussion

tjlundquist1's avatar
tjlundquist1
Icon for Helper I rankHelper I
6 years ago
Solved

Create a % Running Total (0-100% complete) Measure from a Group Field

Hello.    I am trying to create a visual that will show the % of storm claims reported by # of days from loss to reported. So for example from 0-2 days, 41% of all losses have been reported and all...
  • v-eachen-msft's avatar
    v-eachen-msft
    6 years ago

    Hi tjlundquist1 ,

     

    You could try the following measure:

    Measure =
    VAR _table =
        SUMMARIZE (
            Sheet1,
            Sheet1[Group Bucket],
            "a", CALCULATE ( MAX ( Sheet1[Index] ), ALLEXCEPT ( Sheet1, Sheet1[Group Bucket] ) )
        )
    VAR _cumulative =
        CALCULATE ( MAX ( Sheet1[Index] ), _table )
    VAR _total =
        CALCULATE ( MAX ( Sheet1[Index] ), ALL ( Sheet1 ) )
    RETURN
        _cumulative / _total

    Here is my test result.

    Here is the sample data. You need to replace data source with yours.