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
Anonymous
Not applicable

Help with finding a median and weighted average given two columns

Hello

I am a n00b here, so bear with me. I have a data set where I am trying to find multiple median values, and then want to find the weighted average of those medians.

 

Here is a sample data set:

Capture.PNG

 

 

 

 

 

 

 

 

 

I am trying to find a median of Total for each of the Group A and Group B combos: AC, BC, AD, BD. My Data set has a large number of combos, so I am looking for something dynamic.

 

Part 2 would be to then take the medians I just found, and perform a weighted average. 

 

Is there a way to do this?

 

1 ACCEPTED SOLUTION
djurecicK2
Super User
Super User

@Anonymous Here is a way you can do this. 

Create a new column which combines Group A and Group B

calculated column.PNG

Then create a table that gets the median value per combo group:

Group Medians = SUMMARIZE(Groups,Groups[GroupCombo],"Median",MEDIAN(Groups[Total]))
 

Not sure what you mean by weighted average of medians- can you please explain further or post an example of the desired result?

View solution in original post

2 REPLIES 2
djurecicK2
Super User
Super User

@Anonymous Here is a way you can do this. 

Create a new column which combines Group A and Group B

calculated column.PNG

Then create a table that gets the median value per combo group:

Group Medians = SUMMARIZE(Groups,Groups[GroupCombo],"Median",MEDIAN(Groups[Total]))
 

Not sure what you mean by weighted average of medians- can you please explain further or post an example of the desired result?

Anonymous
Not applicable

Thank you!!!

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.