Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hola a todos
tengo una medida (% Cump) que me muestra la comparacion porcentual entre las columnas [Unidades Ppto] y [Unids Prod], quisiera tener un formato que me muestre los iconos de acuerdo a el resultado de [% Cump.] asi:
si [% Cump.] es <0 sea un icono rojo
si [% Cump.] es >= 0 y < 10 sea un icono naranja o amarillo
si es [% Cump.] es > 10 sea un icono verde.
Espero me puedan ayudar ya que no he encontrado la solución, muchas gracias
Solved! Go to Solution.
Hi @manuelacardonan ,
Based on my testing, please try the following methods:
1.Create the simple table.
2.Create the new measure to calculate the percentage.
% Cump =
VAR unida = SUMX('Table', 'Table'[Unidades Ppto])
VAR unid = SUMX('Table', 'Table'[Unids Prod])
VAR result = unid - unida
RETURN
DIVIDE(result, unida)
3.Create the measure to filter the percentage.
Conditional formatting =
IF([% Cump] < 0, "red",
IF([% Cump] >= 0 && [% Cump] < 0.1, "yellow",
IF([% Cump] > 0.1, "green")
)
)
4.Select the cump and click the conditional formatting background.
5.Select the Field value and conditional measure.
6.The result is shown below.
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @manuelacardonan ,
Based on my testing, please try the following methods:
1.Create the simple table.
2.Create the new measure to calculate the percentage.
% Cump =
VAR unida = SUMX('Table', 'Table'[Unidades Ppto])
VAR unid = SUMX('Table', 'Table'[Unids Prod])
VAR result = unid - unida
RETURN
DIVIDE(result, unida)
3.Create the measure to filter the percentage.
Conditional formatting =
IF([% Cump] < 0, "red",
IF([% Cump] >= 0 && [% Cump] < 0.1, "yellow",
IF([% Cump] > 0.1, "green")
)
)
4.Select the cump and click the conditional formatting background.
5.Select the Field value and conditional measure.
6.The result is shown below.
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
thank you, the answer that's correct 🙂 I found the solution
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
87 | |
81 | |
53 | |
37 | |
35 |