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
cworkman2015
Helper II
Helper II

Calculating Total Average ignoring visuals dimensions

Hello,


I'm trying to calculate the total average of sales units across a dimension in a matrix. Here is my current formula: 

 
Sales Avg Sum = averagex(ALL('Reports DM_STORE'[Store Number]),[Sales Units])
The formula is returning the correct value in the Total line, but I'd like that Total value to be across every record in the the visual.
example Store 25, 24, 16, etc. all have a Sales Avg Sum of 29,094.64
 
Any help would be appreciated!
 

sales units matrix.JPG
1 ACCEPTED SOLUTION
Mariusz
Community Champion
Community Champion

Hi @cworkman2015 

 

Try the below

Sales Avg Sum = 
AVERAGEX( 
    ALL( 'Reports DM_STORE'[Store Number], 'Reports DM_STORE'[Store] ), -- OR ALL( 'Reports DM_STORE' ) 
    [Sales Units] 
)
Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
Mariusz Repczynski



Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
Mariusz Repczynski

 

View solution in original post

2 REPLIES 2
Mariusz
Community Champion
Community Champion

Hi @cworkman2015 

 

Try the below

Sales Avg Sum = 
AVERAGEX( 
    ALL( 'Reports DM_STORE'[Store Number], 'Reports DM_STORE'[Store] ), -- OR ALL( 'Reports DM_STORE' ) 
    [Sales Units] 
)
Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
Mariusz Repczynski



Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
Mariusz Repczynski

 

kentyler
Solution Sage
Solution Sage

Have you tried just 

Sales Avg Sum = average('Reports DM_STORE'[Sales Units])

That should average all the numbers of Sales Units. 





Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.