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
Syndicate_Admin
Administrator
Administrator

Promedio de necesidades en la fila y total del promedio en la columna de subtotal

Hola equipo, @amitchandak señor,

pregunta:

ubicaciónestadocalificadoiniciaciónENSuma total de la media
costa afuerapromedio>>>1520944
a101510
b20258

Por favor, ayúdame a obtener el resultado deseado

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

@sajjadkhan253 ,

Basándome en su descripción, he creado una muestra simple:

vjianbolimsft_1-1670463420620.png

Aplique la medida a un objeto visual de matriz:

Measure =
SWITCH (
    TRUE (),
    ISINSCOPE ( 'Table'[ID] ) && ISINSCOPE ( 'Table'[Status] ), SUM ( 'Table'[Value] ),
    ISINSCOPE ( 'Table'[Status] ) && NOT ( ISINSCOPE ( 'Table'[ID] ) ), AVERAGE ( 'Table'[Value] ),
    NOT ( HASONEVALUE ( 'Table'[Status] ) ) && NOT ( HASONEVALUE ( 'Table'[ID] ) ),
        SUMX (
            SUMMARIZE (
                'Table',
                'Table'[Status],
                "Average",
                    CALCULATE (
                        AVERAGE ( 'Table'[Value] ),
                        FILTER ( 'Table', [Status] = EARLIER ( 'Table'[Status] ) )
                    )
            ),
            [Average]
        )
)

vjianbolimsft_2-1670463473790.png

Cambie el nombre de los subtotales de fila y columna:

vjianbolimsft_0-1670463374225.png

Resultado final:

vjianbolimsft_3-1670463490986.png

Saludos

Jianbo Li

Si esta publicación ayuda, considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

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.