Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hola a todos,
Ejemplo:
Font Color =
IF(
NOT ISINSCOPE('Table'[RowField]), -- this means grand total row
"#FF0000", -- color for grand total
"#000000" -- color for normal rows
)
Si tienes varios niveles de fila, comprueba el campo de nivel más bajo.
Ejemplo:
Font Color =
IF(
NOT ISINSCOPE('Table'[Category])
&& NOT ISINSCOPE('Table'[Subcategory]),
"#FF0000",
"#000000"
)
Matrix → Valores → Formato condicional → Color de fuente
Formato por: Valor del campo
Según el campo: Color de la fuente
Hola,
Sí, puedes conseguirlo usando una medida DAX para controlar el color de la fuente. El truco es detectar cuándo la matriz está representando específicamente la fila total. Puedes hacerlo usando la función ISINSCOPE: devuelve TRUE cuando la fila actual está dentro del alcance de una columna determinada, así que usando NOT ISINSCOPE, solo puedes apuntar al total general.
Por ejemplo, una medida sencilla podría ser así:
FontColor_GrandTotal =
IF(
NOT ISINSCOPE('Table'[Category]),
"#FF0000", // Color for grand total
"#000000" // Color for all other rows and subtotals
)
Luego, en la matriz, ve a Formatear >Valores > Formateo condicional > Color de fuente, elige Formatear por valor de campo y selecciona esta medida. De este modo, solo la fila del total general cambiará de color, mientras que los subtotales y filas regulares permanecen sin afectar.
Es una forma interesante de resaltar solo el total final sin afectar a otras filas.
¡Espero que te ayude!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.