Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Calculate Weekly Average

Dear all,   I'm trying to obtain (either as a custom column or through a measure) the weekly average of the Import - Units (see below table, first column from the right).    As you can see, there...
  • v-xicai's avatar
    7 years ago

    Hi Anonymous ,

     

    You can create column Average to get aggregated weekly averages at Destination Country level or Destination Region level.

     

    Average = CALCULATE(AVERAGE(Table1[Import - Units]),FILTER(ALLSELECTED(Table1),OR(Table1[Destination Country]=EARLIER(Table1[Destination Country]),Table1[DestinationRegion]=EARLIER(Table1[DestinationRegion]))))

     

     

     

     

    Best Regards,

    Amy

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.