Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Use Slicer as a summarizer with Average values

Hi! I have a graph that has average values in it. These average values I have calculated in a measure. In a slicer I can specify which products I want to see the average values of. But if I use more...
  • MFelix's avatar
    6 years ago

    Hi Anonymous ,

     

    What you need to do is an aggregator measure in this case use the SUMX:

     

    AVERAGE VALUE = IF(HASONEVALUE(Table[Product]); [AVERAGE MEASURE]; SUMX(ALLSELECTED(Table[Products]);[AVERAGE MEASURE])

     

    This will make the sum of all averages values when you don't have a single product selected.