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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
JLambs20
Helper III
Helper III

Difference between one value and average of all values using DAX

Hello, I need help with what seems like a straight-forward problem.  I simply need to divide an individual weight (green highlight) by a group of value's average (yellow).  So in this example, I need the "Change" column to be the difference between the weight of Value 1 and the Average of all of the values.

JLambs20_0-1695849544542.png

Thank you!

1 ACCEPTED SOLUTION
CoreyP
Solution Sage
Solution Sage

You can create a measure using ALLSELECTED to remove the row level context. Something like this should work:

Change = DIVIDE( SUM( Weight ) , CALCULATE( AVERAGE( Weight ) , ALLSELECTED( Value ) ) , BLANK() )

View solution in original post

2 REPLIES 2
JLambs20
Helper III
Helper III

That worked perfectly! Thank you so much!

CoreyP
Solution Sage
Solution Sage

You can create a measure using ALLSELECTED to remove the row level context. Something like this should work:

Change = DIVIDE( SUM( Weight ) , CALCULATE( AVERAGE( Weight ) , ALLSELECTED( Value ) ) , BLANK() )

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.