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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Is there a function(s) in Power BI that would calculate an average weighted pricing change over time? Weighted by the amount of spend in 2015. I would also need this weighting to adjust based on the filters applied. An example of a line item is below.
Each line item represents an invoice.
There can be multiple suppliers for each part #.
The baseline for each part needs to be the earliest invoice date of that part. The furthest back the data goes is 1/1/13.
I would like to be able to pull up a chart and see and average weighted pricing change for each supplier.
Any insight/suggestions would be greatly appreciated.
Supplier Year Invoice Spend Invoice Price Part # Time Period
ABC 2015 $650 $6.50 Z867 1/1/13
I would think something like this should work.
Thanks for the help here. I am still having issues getting this to apply correctly. Can you elaborate on the two tables?
Yeah, sorry that wasn't quite right. It is always better/easier if you create a sample workbook and post it. That will get the fastest and most accurate results.
Total Spend:=sumx(values(Data[Part #]),calculate(SUMX ( Data,Data[Invoice Spend])))
Total Qty:=sumx(values(Data[Part #]),calculate(SUMX (
Data,
DIVIDE ( Data[Invoice Spend], Data[Invoice Price] )
)))
Weighted Price:=DIVIDE([Total Spend] , [Total Qty])
Take a look at my Excel book here.
https://www.dropbox.com/s/vg1ztg9vr8542sh/weighted%20price.xlsx?dl=0
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 38 | |
| 38 | |
| 28 | |
| 27 |
| User | Count |
|---|---|
| 124 | |
| 88 | |
| 73 | |
| 66 | |
| 65 |