Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi all,
I'm doing some calculations and one I want to analyze is the averge cost. The Average Cost is a measure:
Coste Unidad =
DIVIDE([Median Cost],[Revenues Unidades],0)
I create a pivot table view and whe dimensions Customer & Seller are open the calculations are correct: 736 each unit
But when I collapsed the average is not an average is a sum of the cost, then is 1472
Any idea how could i show the average and not the sum?
Thanks
Hi @quickbi
You can try the following measure
Coste Unidad =
VAR a =
CALCULATE ( [Median Cost], ALLSELECTED ( table ) )
VAR b =
CALCULATE ( [Revenues Unidades], ALLSELECTED ( table ) )
RETURN
DIVIDE ( a, b, 0 )
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Thanks for your answer but if I apply this formula I could not filter by article
Is not possible to tell to the table when it resume by total some columns do it by sum and another by average?
Thanks again guys
Hi @quickbi
Thanks for you quick reply, can you provide some sample data and the output you want so that can provide more suggestion for you.
Best Regards!
Yolo Zhu
Please share a dummy data for easy reference .
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 |
---|---|
78 | |
76 | |
53 | |
37 | |
31 |
User | Count |
---|---|
101 | |
56 | |
51 | |
45 | |
40 |