Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hola
Tengo una tabla de datos y cada fila tiene un ID. Hay dos filas por identificador. Me gustaría usar el formato de tabla para resaltar de alguna manera que las dos filas se relacionan entre sí, es decir, como el color de fondo alternativo pero forzándolo a ser el mismo para las dos filas de ID coincidentes. ¿Hay alguna manera de hacer esto usando una medida y reglas de elemento Cell?
@JemmaD ,
Buscar "tabla de formato de Power BI por categoría"
He encontrado este enlace
https://community.fabric.microsoft.com/t5/Desktop/Alternate-row-colour-after-7-rows-after-each-new-g...
EvenOdd = IF(ISEVEN(RANKX(ALLSELECTED(DailyROCStats),CALCULATE(SELECTEDVALUE(DailyROCStats[QueueDate])),,ASC,Dense)) = TRUE(),1,0)
Usé [QueueDate] como mi categoría. Cree que usará su campo [ID].
Espero que esto ayude.
Saludos
Gracias @rsbin esto funcionó perfectamente. Tuve que cambiar el resumen predeterminado a No resumir, luego obtuve 0 y 1 en filas alternas para [ID]. Luego agregué formato condicional a todas las columnas de la tabla usando un promedio de esta nueva columna calculada usando Gradiente, por lo que min es blanco y max es gris y divide la tabla perfectamente. ¡Gracias!
@JemmaD ,
Omití los detalles más finos en mi respuesta. Me alegro de que haya podido completar los pasos finales y hacer que funcione para usted.
Saludos
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.