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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
JCB
New Member

Weighted average - multiple category

Hi, 

 

i am trying to do a weighted average with mulitple categories. I need to multiply the "proportion" by the "capability" depending on filters selected. I have 3 filters: location, platform and scenario. The weighted avg need to update depending on the selections.

 

I've tried the quick measure but didn't allow me to do it with multiple categories... I also tried this syntax since all 3 filters are interacting with the measure/visual but still not working:

 

DIVIDE(
    sumx('2022 Growability baseline','2022 Growability baseline'[Proportion]*'2022 Growability baseline'[capability]),
    sumx('2022 Growability baseline','2022 Growability baseline'[Proportion])
)
 
Any thoughts on how i should approach this?
3 REPLIES 3
JCB
New Member

@amitchandak they are both columns and really not returning the good value. Here's the table:

JCB_0-1662143575485.png

and the output visual is a bar graph by platform (Y axis is in %)..

Anonymous
Not applicable

HI @JCB,

Perhaps you can try to do unpivot column on your value fields to convert them to attribute and value. Then you can use the attribute field on the legends to group these values.

Unpivot columns (Power Query) (microsoft.com)

Regards,

Xiaoxin Sheng

amitchandak
Super User
Super User

@JCB , if Proportion and capability are columns the measure seems correct to me

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.