Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Formato condicional en tabla y tarjeta

Querida comunidad,

Por favor, ayúdeme con la declaración de problema a continuación mencionada para cambiar el color de fondo de una celda si es negativo

Ejemplo de datos (una tabla)

Desviación real objetivo

100 89 11

89 93 -4 (cambiar el color de fondo de la celda a rojo, ya que es negativo)

92 88 4

78 88 -10

Caso 1: donde sólo el fondo de la celda de desviación debe ser rojo.

Caso 2: Donde me gustaría mostrar el fondo de toda la fila como rojo.

Otro problema

Digamos que estoy calculando una medida a través de una fórmula y me gustaría hacer su fondo como rojo si el valor calculado es negativo.

Por favor, ayúdame.

Gracias de antemano

1 REPLY 1
amitchandak
Super User
Super User

@Shubham294_ , Utilice el formato condicional basado en reglas o cree una medida de color y la use con la opción "campo"

Ejemplo

Color Date = if(FIRSTNONBLANK('Date'[Date],TODAY()) <today(),"lightgreen","red")

recomienda

https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values
https://exceleratorbi.com.au/conditional-formatting-using-icons-in-power-bi/
https://community.powerbi.com/t5/Desktop/FORMAT-icon-set-for-use-in-a-data-card/td-p/811692

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

May 2025 Monthly Update

Fabric Community Update - May 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors