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
mitchlowes
New Member

How to create a dynamic weighted average measure that changes depending on selected values

Hi.
I am really struggling with creating a weighted average percentage measure that I can use within my dashboard.

I have data like the below table:

mitchlowes_0-1700057940999.png

What I want to achieve is to be able to create a weighted Relevance % column based on the Relevant total per Country-Date combination. This would look something like below (example first row: Total Relevant=74+1+1, Weight=74/76, Weighted Relevant/Total=0,973684*0,225609756): 

mitchlowes_1-1700057960460.png

The problem I have is that I am not able to find a way to create a measure that takes on the value of the Weighted Relevant/Total.

Additionally, I would also want this Weighted Relevant/Total measure to be dynamic so that it changes if I filter out a certain Product Line for a specific Country-Date combination.

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi, I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.

 

Jihwan_Kim_0-1700070670614.png

 

Jihwan_Kim_1-1700071163168.png


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

2 REPLIES 2
Jihwan_Kim
Super User
Super User

Hi, I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.

 

Jihwan_Kim_0-1700070670614.png

 

Jihwan_Kim_1-1700071163168.png


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Thanks for this.
This looks good.

The only thing I am missing at the moment is that when I filter for product line the Weighted Relevant should also change.
Example:
Filter Country: Russia

Filter Product Line: Prod2

Filter Date: 11/8/2023

 

Expected Weighted Relevant = 1 (because the Relevant Relevant becomes 1, rather than 72)

Actual Weighted Relevant = 0,01389

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.