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
dhamodarankms
New Member

Higher grain Summarization

Dear DAX community, 

 

I want to understand the difference between AVERAGE and AVERAGEX in terms of working method and capacity.

The formula for the average is SUM(amount)/Number of Instance. AVERAGEX works at row context, it is calculating the Average at every row Level. I want to understand, how this is happening?

 

Thanks for you time and much appreciate your support in this regard.

 

Regards,

SD

4 REPLIES 4
Anonymous
Not applicable

AVERAGE and AVERAGEX does not equal to SUM( Amount ) / Number Of Instances. This is a misconception. If [Amount] is BLANK, this amount is not considered. So, fir instance, AVERAGE of (1, 1, BLANK, BLANK) = 2/2, not 2/4. If you want to force the recognition of BLANKs, you have to add 0 to them. So, AVERAGE of (1, 1, BLANK + 0, BLANK + 0) = 2/4.
Anonymous
Not applicable

amitchandak
Super User
Super User

@dhamodarankms , check if these can help

https://social.msdn.microsoft.com/Forums/sqlserver/en-US/88878bf3-7894-445b-b3c1-740329fa695b/dax-av...

https://www.decisivedata.net/blog/understanding-using-x-functions-dax

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Greg_Deckler
Community Champion
Community Champion

@dhamodarankms So AVERAGE accepts a column as an input. AVERAGEX accepts a table or table expression as an input as well as a column specification. So, you can do this:

 

AVERAGE('Table'[Column]) will give you the average of everything in the table in that column

 

with AVERAGEX you can do things like:

 

AVERAGEX(FILTER('Table',[Device] = "A"),[Column])

 

This allows you to create some kind of filter and then just do an average over that subset of the table and column values.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.