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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
marceloopus127
Advocate II
Advocate II

Lock values independent of the filter

Lock values independent of the filter.

 

The formula is not locking the value so I can calculate percentages in another measure. Where am I going wrong? Can someone help me?

 

A formula não está travando o valor para que eu calcule percentuais em outra medida. Onde estou errando? Alguém pode me ajudar?

 

Vendas Serviços =
    var TotalServicos =
        SUM(dLanServicos[ValorMovimento])
    return
    CALCULATE(TotalServicos;ALL(fLanNotas[SemLiquidacao]);
        FILTER(ALL(fLanNotas);fLanNotas[SemLiquidacao]="S");
        FILTER(ALL(fLanNotas);fLanNotas[TipoNegocio]="V");
        FILTER(ALL(fLanNotas);fLanNotas[TipoMovimento]="S");
        FILTER(ALL(dClientesFornecedores);dClientesFornecedores[APropria]="N")
)

 

Desde já, obrigado!

 

Thanks!!

 

1 ACCEPTED SOLUTION

Hello!
For some reason that I do not know, when I made the update of the data the measure presented the result that I expected.

Anyway, thanks for the reply.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@marceloopus127,


Could you please share dummy data and relationships of your tables(fLanNotas,dLanServicos, dClientesFornecedores) , then post expected result here?

Based on above DAX, the measure value will not change if you use fields of fLanNotas table or dClientesFornecedores table to create  filters and then use these filters in your visual.

Regards,
Lydia

Hello!
For some reason that I do not know, when I made the update of the data the measure presented the result that I expected.

Anyway, thanks for the reply.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors