Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
rendalignacio
Helper I
Helper I

Incorrect matrix row total

Hi,

 

Can you please help me with this scenario?

 

The matrix row gives an incorrect average. Please see image:

 

Total row incorrect average.jpg

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@rendalignacio,

 

You may use the following measure.

Measure =
IF (
    HASONEFILTER ( Table1[Test] ),
    AVERAGE ( Table1[Value] ),
    AVERAGEX (
        ALLSELECTED ( Table1[Test] ),
        CALCULATE ( AVERAGE ( Table1[Value] ) )
    )
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@rendalignacio,

 

You may use the following measure.

Measure =
IF (
    HASONEFILTER ( Table1[Test] ),
    AVERAGE ( Table1[Value] ),
    AVERAGEX (
        ALLSELECTED ( Table1[Test] ),
        CALCULATE ( AVERAGE ( Table1[Value] ) )
    )
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Bordalos
Helper I
Helper 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?

 

 

Capture1.PNG

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors