Forum Discussion
Divide Row Value with a measure
- 5 years ago
Here is a measure expression you can try
Avg for Company and Category =
CALCULATE (
AVERAGE ( Table[Score] ),
ALLEXCEPT (
Table,
Table[Company],
Table[Category]
)
)Pat
Hey, so I used the measure you gave to recreate my static score column as a measure which I then divided by the measure for my participant count column and this has worked! I hope this was the intended use - Thank You!
If its not too much bother can you explain why the measure you provided calculates a row wise average for the score across company and category? I struggle a lot with PBI contexts at the minute 😕
Sure. The ALLEXCEPT function removes all the filters from the columns of the specified table except the the ones you list. The table visual provides filters on Category and Company because you added those columns to the visual, and the measure removes filters from any other columns you've included (e.g., Score, if not aggregated).
Pat