Forum Discussion

MOMOMO's avatar
MOMOMO
Frequent Visitor
5 years ago
Solved

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   

 

  • 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.

4 Replies

    • MOMOMO's avatar
      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.

    • MOMOMO's avatar
      MOMOMO
      Frequent Visitor

      thanks but this did not adress my issue.