Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote 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!
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.