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.
Good day, I write this question again but with fictitious values as requested
What I need is to create a measure to calculate the % of each vehicle in relation to the maximum value of that column.
In other words, the Chevrolet Onix Hatch would correspond to 100%, the EcoSport would correspond (958.43 / 51268.52) and thus calculate the percentages for each vehicle. In other words, let it look something like this:
Best regards
Solved! Go to Solution.
Hey @Syndicate_Admin,
Give this a try:
Measure =
VAR _max =
CALCULATE (
MAX ( 'Table'[Suma Precio] ),
REMOVEFILTERS ( 'Table'[Vehiculo] )
)
VAR _result =
DIVIDE ( SELECTEDVALUE ( 'Table'[Suma Precio] ), _max )
RETURN
_result
You calculate the maximum by removing the filter context from vehicle. You then use this maximum to calculate the ratio.
Hey @Syndicate_Admin,
Give this a try:
Measure =
VAR _max =
CALCULATE (
MAX ( 'Table'[Suma Precio] ),
REMOVEFILTERS ( 'Table'[Vehiculo] )
)
VAR _result =
DIVIDE ( SELECTEDVALUE ( 'Table'[Suma Precio] ), _max )
RETURN
_result
You calculate the maximum by removing the filter context from vehicle. You then use this maximum to calculate the ratio.
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 |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
101 | |
86 | |
64 |