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

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

Reply
Anonymous
Not applicable

How to create a weighted value in a matrix with levels

I have a report working on row level but aggregation not working and need to add a weighted average.

In the report I need to use "wg index" (procent from sales) = right value on total

Value 3.82 is OK on total value 

Problem is when its aggregated on product group it will calculate on rows ?

I would like to 0,11% instead of 85.93 % 

 

mikaelacksjo_0-1645713333229.png

 

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

Please check the following methods.

Measure:

wg Index = SELECTEDVALUE('Table'[Sales])*SELECTEDVALUE('Table'[Net Price Index])
Measure = DIVIDE(AVERAGEX('Table',[wg Index]),SUM('Table'[Sales]))

vzhangti_1-1646120985513.png

Is this the result you expected?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more.

View solution in original post

2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

Please check the following methods.

Measure:

wg Index = SELECTEDVALUE('Table'[Sales])*SELECTEDVALUE('Table'[Net Price Index])
Measure = DIVIDE(AVERAGEX('Table',[wg Index]),SUM('Table'[Sales]))

vzhangti_1-1646120985513.png

Is this the result you expected?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more.

lbendlin
Super User
Super User

Please provide sanitized sample data that fully covers your issue. If you paste the data into a table in your post or use one of the file services it will be easier to work with. Avoid posting screenshots of your source data if possible.

Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Helpful resources

Announcements
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.

Top Kudoed Authors