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
Anonymous
Not applicable

Fila calculada

Hola buena gente,

Necesito tu ayuda.

Tengo la siguiente tabla.

Untitled.png

Todas las columnas son columnas calculadas. Quiero tener un "Total" que excluya el "Beneficio Bruto". Actualmente está contando el "Beneficio Bruto" dentro del "Total". Quiero mantenerlo excluido. Por favor, ayúdeme.

1 ACCEPTED SOLUTION
Mariusz
Community Champion
Community Champion

Hola @u986483

Puede ajustar la siguiente medida para obtener el resultado requerido.

Sales Total without Contoso = 
VAR __totalWithoutContoso = 
    CALCULATE(
        [Sales],
        KEEPFILTERS( 
            NOT 'Product'[Brand] = "Contoso" 
        ) 
    )
RETURN 
IF(
    HASONEVALUE( 'Product'[Brand] ),
    [Sales],
    __totalWithoutContoso
)

image.png

Saludos
Mariusz

Si este post ayuda,entonces por favor considere aceptarlo como la solución.

Por favor, siéntase libre de conectarse conmigo.
Linkedin

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@u986483 , Trate como

Total Nuevo ([Total],Tabla[MOH COA Level 6]!-"Gross Profit")

O

Total Nuevo: if(isfiltered(Table[MOH COA Level 6]),[Total],calculate([Total],Table[MOH COA Level 6]!-"Gross Profit"))

recomienda
https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/

Mariusz
Community Champion
Community Champion

Hola @u986483

Puede ajustar la siguiente medida para obtener el resultado requerido.

Sales Total without Contoso = 
VAR __totalWithoutContoso = 
    CALCULATE(
        [Sales],
        KEEPFILTERS( 
            NOT 'Product'[Brand] = "Contoso" 
        ) 
    )
RETURN 
IF(
    HASONEVALUE( 'Product'[Brand] ),
    [Sales],
    __totalWithoutContoso
)

image.png

Saludos
Mariusz

Si este post ayuda,entonces por favor considere aceptarlo como la solución.

Por favor, siéntase libre de conectarse conmigo.
Linkedin

Anonymous
Not applicable

Muchas gracias, hombre. Su solución es precisa y hasta el punto 😀

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.