Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Comparing a value to the values total based on a matching dimension.

Hi everyone,   In my example, I have 4 unique stores with different store types (small, medium and large format).  To see if a store performs better or worse than the average of similar store fo...
  • Greg_Deckler's avatar
    3 years ago

    Anonymous Try:

     

    Measure = 
      VAR __Format = MAX('Table'[Store format)
      VAR __Table = FILTER(ALL('Table'),[Store format] = __Format)
      VAR __Result = AVERAGEX(__Table,[Average revenue])
    RETURN
      __Result