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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
StuartSmith
Power Participant
Power Participant

Color de la fila de la tabla condicional - Pasado fecha rojo, hoy naranja y fechas futuras verde.

¿Hay alguna manera de que una tabla tenga filas rojas (ya sea fuente o backgrond) para fechas anteriores a hoy, fecha actual naranja y fechas futuras verde?

6 REPLIES 6
az38
Community Champion
Community Champion

@StuartSmith

Sí. opción de formato condicional https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting

crear una columna como

Colour = 
SWITCH(TRUE(),
Table[Date] < TODAY(), "red",
Table[Date] = TODAY(), "orange",
"green")

y usarlo como regla de campo en el formato condicional


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

@az38 Hola, su solución anterior funcionó muy bien, y ahora tratando de desarrollarla. ¿Hay alguna manera de que si alguna fecha es entre hoy y los próximos 6 meses, su azul.

Esto resaltaría entonces cualquier fecha que se encuentre entre hoy y 6 meses en el futuro.

Gracias de antemano

Hemos detectado un problema desconocido.

Contract_End_Date_Colour_Formatting_Columnn de la casa de los
SWITCH(TRUE(),
'Carrier Matrix'[ContractEndDate] < TODAY(), "red",
'Carrier Matrix'[ContractEndDate] á TODAY(), "naranja",
'Matriz de portadora'[ContractEndDate] > HOY() < 6Month en el futuro, "Azul",
"Verde")

Obviamente el "< 6Month en el futuro" es código válido, 😁

az38
Community Champion
Community Champion

Hola @StuartSmith

Tratar

Contract_End_Date_Colour_Formatting_Columnn =
SWITCH(TRUE(),
'Carrier Matrix'[ContractEndDate] < TODAY(), "red",
'Carrier Matrix'[ContractEndDate] = TODAY(), "orange",
DATEDIFF(TODAY(), 'Carrier Matrix'[ContractEndDate], MONTH) <= 6 , "Blue",
"Green")

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Eso es genial y gracias

Gracias

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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