Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello community, I hope somebody can help me with this calculation.
The result I’m expecting is to show the weighted average of the price variation.
I will show how can I do this on power pivot and how far I’m with power BI.
For this I will need:
1) The weighted average price by quarter.
2) The price variation between the vendor’s price and the average price by quarter.
3) And finally calculate the weighted average of those variations.
The Table
Excel
Power BI
Weighted Average Price = sum(Tabla1[Total])/sum(Tabla1[Amount (lb)])
-Total weighted average = CALCULATE (SUM ( Tabla1[Total]) / SUM ( Tabla1[Amount(lb)] ); ALL ( Tabla1[Vendor ] ))
-Variation = ([Weighted Average Price]-[-Total weighted average])/[-Total weighted average]
Here is where I got stack. I don’t know how to get the weighted average of those variations. At the beginning, I thought it was the total of the table, but it is not. The total on the table is a very different number.
Any ideas to solve this enigma?
Best
Solved! Go to Solution.
In this scenario, since you already put a measure into matrix, we can't define aggregation on a measure. And it's not possible to custom aggregation on Grand/Sub Total level.
For your requirement, it can't be achieved currently. Please vote a similar idea.
Regards,
In this scenario, since you already put a measure into matrix, we can't define aggregation on a measure. And it's not possible to custom aggregation on Grand/Sub Total level.
For your requirement, it can't be achieved currently. Please vote a similar idea.
Regards,
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
79 | |
78 | |
59 | |
36 | |
33 |
User | Count |
---|---|
94 | |
61 | |
56 | |
49 | |
41 |