Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Calculate average considering all columns except one

Hi Team,   I have a Table matrix with 5 columns added in it and "State" is one of the column.     I want to get the average sales at the national level, i.e, that measure should ignore filter fro...
  • V-lianl-msft's avatar
    5 years ago

    Hi Anonymous ,

     

    Try to use allexcept and add 'country' and 'Speciality' to the filter condition.

    Measure = CALCULATE(AVERAGE('Table'[sale]),ALLEXCEPT('Table','Table'[Speciality],'Table'[country]))

     

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