Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 years ago
Solved

Summarizing and Running Averages

I have the following data where I need to show the quarterly average of a rolling average.   Name       Pod   Complete Date   Days            Qtr 16.04.1     AC1    03/23/16            7.06875    ...
  • Anonymous's avatar
    Anonymous
    9 years ago

    Anonymous

     

    For the RunningAverage Column use the expression

     

    RunningAverage = Averagex (
    Filter ( YourTable, YourTable[Pod] = Earlier ( YourTable[Pod]) && [Complete] <= Earlier([Complete]) ),
    ([Days])
    )

     

    For the Average of RunningAverage by Quarter create a summary table

     QtrRunningAvg= Summarize( YourTable, [Pod], [Quarter],  "QtrRunAvg",  Average(YourTable[RunningAverage])
                                                            )

     

     

    Plot the values from summary table into a table chart you will see exeactly what you wanted.

     

    Plot the values of RunningAverage from YourTable it will match your expectation.

     

    If the above resolves your issue please accpet it as a solution and also give KUDOS.

     

    Cheers

     

    CheenuSing