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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Syndicate_Admin
Administrator
Administrator

¿Cómo sumar el total general a Matrix?

Hola

Tengo la matriz de abajo y con el subtotal en la imagen de abajo. Me gustaría agregar otra fila, que muestre % Total.

spagad6263_2-1738631431250.png

Debería mostrar lo siguiente

%Total 35%.

¿Puede sugerir cómo podría agregar esta nueva fila? Me pregunto si esto se puede agregar a la fila del total general. Gracias

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

Hola

No estoy seguro de cómo se ve su modelo semántico, pero intenté crear un archivo pbix de muestra como se muestra a continuación.

Una de las formas de lograr esto es configurar la configuración de formato de la visualización de la matriz en la sección "Subtotal de fila", como debajo de la imagen.

Compruebe el siguiente enlace (Microsoft Learn), la imagen y el archivo pbix adjunto.

Configuración del formato visual de matriz - Power BI | Microsoft Learn

Jihwan_Kim_1-1738641989781.png

Jihwan_Kim_0-1738641975095.png

Count measure: = 
IF ( NOT ISINSCOPE( result[category] ), BLANK (), SUM ( result[count] ) )

Stage measure: = 
SWITCH (
    TRUE (),
    ISINSCOPE ( result[Result] ), BLANK (),
    ISINSCOPE ( result[category] ), FORMAT ( SUM ( result[stage_count] ), "#,#0" ),
    FORMAT ( SUM ( result[count] ) / SUM ( result[stage_count] ), "#0.00%" )
)

View solution in original post

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Muchas gracias por la ayuda. Voy a intentarlo.

Syndicate_Admin
Administrator
Administrator

Hola

No estoy seguro de cómo se ve su modelo semántico, pero intenté crear un archivo pbix de muestra como se muestra a continuación.

Una de las formas de lograr esto es configurar la configuración de formato de la visualización de la matriz en la sección "Subtotal de fila", como debajo de la imagen.

Compruebe el siguiente enlace (Microsoft Learn), la imagen y el archivo pbix adjunto.

Configuración del formato visual de matriz - Power BI | Microsoft Learn

Jihwan_Kim_1-1738641989781.png

Jihwan_Kim_0-1738641975095.png

Count measure: = 
IF ( NOT ISINSCOPE( result[category] ), BLANK (), SUM ( result[count] ) )

Stage measure: = 
SWITCH (
    TRUE (),
    ISINSCOPE ( result[Result] ), BLANK (),
    ISINSCOPE ( result[category] ), FORMAT ( SUM ( result[stage_count] ), "#,#0" ),
    FORMAT ( SUM ( result[count] ) / SUM ( result[stage_count] ), "#0.00%" )
)

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Top Solution Authors