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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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