Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
¡Hola! Codifiqué una medida condicional dentro de una función SWITCH para colorear los valores. Para valores negativos se vuelve verde, ya que es una reducción. Por el contrario, para los valores positivos se vuelve rojo, ya que está aumentando. Para 0 se vuelve gris. Pero me gustaría que el signo más (+) también apareciera delante del número, así como el signo menos, para acentuar el aumento. No puedo hacer esto en la medida.
Condicional1 = SWITCH(TRUE(), [VarUltVlr]<0,"Green", [VarValue]>0,"Red", "Grey")
Hola @DR2022 , intenta crear una nueva medida:
New Var = IF ([VarUltVlr]<0,[VarUltVlr],
IF ([VarUltVlr]>0,"+",0))
Saludos
¡Funciona! Creé una nueva medida pero puse / " +"&FORMAT([VarUltVlr], "Porcentaje") / como valor si es verdadero. El segundo SI no era necesario.
¡Muchas gracias!
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.