Forum Discussion

paulsmit's avatar
paulsmit
Frequent Visitor
4 years ago
Solved

Minimum and Maximum weekly average by location

Hi,   I'm looking to see if the gap between the highest weekly location average index and the lowest weekly location average index is growing.     Week Location Index 1 Hartington 100.0...
  • johnt75's avatar
    4 years ago

    Ah, OK.

    Min Index = MINX(
    ADDCOLUMNS( SUMMARIZE( 'Table', 'Table'[Location] ), "@avg", CALCULATE( AVERAGE('Table'[Index]) ) ),
    [@avg]
    )

    I think that should do it.