cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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

Accepted Solutions
Highlighted
Frequent Visitor

Re: Lock values independent of the filter

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
Highlighted
Microsoft
Microsoft

Re: Lock values independent of the filter

@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

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Frequent Visitor

Re: Lock values independent of the filter

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

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Upcoming Events

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors
Top Kudoed Authors