Forum Discussion

martyn_shields's avatar
martyn_shields
New Member
7 years ago
Solved

Creating a XmR Control Chart in Power BI

Hi All   I've looked through the forums and found some good posts on this topic but nothing that quite fits the challenge I currently have. I'm looking at replicating a XmR control chart dynamicall...
  • v-piga-msft's avatar
    7 years ago

    Hi martyn_shields ,

    You could create the calculated columns below to get your desired output.

    Column =
    LEFT ( 'Table1'[Financial Year], 4 )
    average_ =
    CALCULATE (
        AVERAGE ( Table1[Actual] ),
        ALLEXCEPT ( Table1, 'Table1'[Financial Year] ),
        FILTER ( 'Table1', 'Table1'[Column] = EARLIER ( 'Table1'[Column] ) - 1 )
    )
    

    Here is the output.

    Best  Regards,

    Cherry