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.
¿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?
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
@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, 😁
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")
Eso es genial y gracias
Gracias
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |