Forum Discussion
rendalignacio
8 years agoHelper I
Incorrect matrix row total
Hi,
Can you please help me with this scenario?
The matrix row gives an incorrect average. Please see image:
You may use the following measure.
Measure = IF ( HASONEFILTER ( Table1[Test] ), AVERAGE ( Table1[Value] ), AVERAGEX ( ALLSELECTED ( Table1[Test] ), CALCULATE ( AVERAGE ( Table1[Value] ) ) ) )
2 Replies
- BordalosHelper I
hi rendalignacio,
Why are you saying that is wrong? Careful with average of averages as they are not the same of total average.
Does this make sense?
- v-chuncz-msftCommunity Support
You may use the following measure.
Measure = IF ( HASONEFILTER ( Table1[Test] ), AVERAGE ( Table1[Value] ), AVERAGEX ( ALLSELECTED ( Table1[Test] ), CALCULATE ( AVERAGE ( Table1[Value] ) ) ) )