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
GerryD
Frequent Visitor

Power BI Weighted Average Help

Hi -  I am attempting to create a weighted average based upon the following:

 

Data resides in one table. The significant columns are 'days outstanding', 'invoice amount', and invoice#.

 

Ex - 100 days O/S x $10,000 (inv amount) = $1,000,000 for invoice# 123

         10 days O/S x  $1,000 (inv. amount) =  $    10,000 for invoice# 123

        Weighted average = 91.8 days based upon $1,010,000 / 11,000

 

Once I have accumulated weighted averages at the transaction level, I will then need to average them for various groupings (date, product, etc.).  

 

The built-in average feature does not provide what I need. Any assistance will be appreciated.

 

Thank you,

Gerry

  

1 REPLY 1
v-yuezhe-msft
Employee
Employee

Hi @GerryD,

I am not sure what is the raw data in your table.

I make a test using the table shown in first screenshot, I create a new column and measure using formulas below to calculate Weighted average.

Column = Table5[days outstanding ]*Table5[invoice amount]
Weighted Avg = SUM(Table5[Column])/SUM(Table5[invoice amount])
1.PNG2.PNG



If the above formulas doesn’t help, please help to share sample data of your table and post expected result here.


Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.