This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
¡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!
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.