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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
MOMOMO
Frequent Visitor

Plot Weighed Average

Hi, I am new to Power BI. I need to plot the weighted average of the price over several regions for one customer vs. time. How can I so this?

 

I am providing a hypothetical sample table. I want to plot the average price of  product (average / All regions and all sales managers) vs. Year for one customer. The actual data containes many other variables.

 

YearCustomer nameRegionSales managerProductVariable 1Variable 2Variable 3
2010ANATomX   
2010AEUSamY   
2010BEUKayY   
2011AEUTomX   
2011BNAKayY   
2011BEUKayY   
2012AEUBobY   
2012BNADanX   

 

1 ACCEPTED SOLUTION
MOMOMO
Frequent Visitor

this turned out to be very easy. I bascially created a new measure = sum of price / sum sales. When plotting, Power BI does the averagin over the relevant category depending on what category I use in the plot.

View solution in original post

4 REPLIES 4
v-lionel-msft
Community Support
Community Support

Hi @MOMOMO ,

 

Please refer to how to calculate the weighted average with DAX.

Power BI Weighted Average and Totals – Simplify Power BI

 

Best regards,
Lionel Chen

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

thanks but this did not adress my issue.

Fowmy
Super User
Super User

@MOMOMO 


Can you share the expected results as well?

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

MOMOMO
Frequent Visitor

this turned out to be very easy. I bascially created a new measure = sum of price / sum sales. When plotting, Power BI does the averagin over the relevant category depending on what category I use in the plot.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.