Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
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 %
Solved! Go to Solution.
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]))
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.
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]))
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.
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