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.
Hi Everyone,
Sample dataset
City | Population | Utilization% |
Bangalore | 20.00 | 44 |
Mangalore | 10.00 | 22 |
Mysore | 15.00 | 33 |
Total | 45.00 |
I am trying to create a measure for Utilization% and below is the formula :
Utilization% = SUM(total population for individual cities) / Total population * 100.
Eg : Utilization% = SUM(20) / 45 * 100 = 44 (Bangalore)
How to achieve this measure in Power BI?
Much appreciated for help.
Hello @Rajeshaxxonet
this should be a simple:
Utilization% =
DIVIDE (
SUM ( Cities[Population] ),
CALCULATE (
SUM ( Cities[Population] ),
ALL ( Cities[city] )
)
) * 100
Did I answer your question correctly? Mark my answer as a solution!
Proud to be a Datanaut!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |