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
StefanoGrimaldi
Resident Rockstar
Resident Rockstar

Power Bi Dax Help

hey guysm I have this formula: 

.Saldo Ejecutado Indicadores / Saldo Ingresos =
DIVIDE(
    [.Saldo Ejecutado Indicadores],
    CALCULATE(
        [.Saldo Ejecutado Indicadores],
        ALL('Indicadores Financieros'[Indicador]),
        'Indicadores Financieros'[Categoria de cuenta] = "4. Ingresos"
    )
)
 
basically Im trying to make it ignore the filter given on a matrix visual when u add the row fields like the denominator only to be affected by the column but not the row filter. 
 
any help much appreciated. 




Did I answer your question? Mark my post as a solution! / Did it help? Give some Kudos!

Proud to be a Super User!




1 ACCEPTED SOLUTION
PijushRoy
Super User
Super User

Hi @StefanoGrimaldi 

Please try below code

DIVIDE(
    [.Saldo Ejecutado Indicadores],
    CALCULATE(
        [.Saldo Ejecutado Indicadores],
        REMOVEFILTER('Indicadores Financieros'[Indicador]),
        'Indicadores Financieros'[Categoria de cuenta] = "4. Ingresos"
    )
)

 

If your requirement is solved, please make sure to MARK AS SOLUTION and help other users find the solution quickly. Please hit the LIKE button if this comment helps you.

Thanks
Pijush

View solution in original post

4 REPLIES 4
PijushRoy
Super User
Super User

Hi @StefanoGrimaldi 

Please try below code

DIVIDE(
    [.Saldo Ejecutado Indicadores],
    CALCULATE(
        [.Saldo Ejecutado Indicadores],
        REMOVEFILTER('Indicadores Financieros'[Indicador]),
        'Indicadores Financieros'[Categoria de cuenta] = "4. Ingresos"
    )
)

 

If your requirement is solved, please make sure to MARK AS SOLUTION and help other users find the solution quickly. Please hit the LIKE button if this comment helps you.

Thanks
Pijush

nop, still same behaviour its dividing by the grand total as if its ignoring the column filter. 





Did I answer your question? Mark my post as a solution! / Did it help? Give some Kudos!

Proud to be a Super User!




never mind it worked, need to change a column was using the wrong one, thanks 





Did I answer your question? Mark my post as a solution! / Did it help? Give some Kudos!

Proud to be a Super User!




@StefanoGrimaldi 
You are welcome

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.