Forum Discussion

10246532's avatar
10246532
Advocate I
3 years ago
Solved

Slicer generating inverted condition

Hi all

a colleague asked me for help: she has a slicer not working correctly.

 

The slicer presents two values (say "0"/"1").

The condition generated selecting the first value is "Attribute is not 1", while a similar slicer created from scratch produces for the same selection the condition "Attribute is 0".

 

The problem arises when no value is selected:

the first slicer generates the condition in "Attribute is not 0 or 1", which is false, the second one does not generate any condition. 

 

I can't find any difference, in the visualization panel.

Unzipping the .pbix file and inspecting the json string of the report layout I find some difference; 

particularly the first slicer present this property 

          "isInvertedSelectionMode\":{\"expr\":{\"Literal\":{\"Value\":\"true\"}}}

 

Have you ever founded something like that?

Is there a way to control this behaviour in Power BI Desktop?

thanks

Luigi

4 Replies

  • v-henryk-mstf's avatar
    v-henryk-mstf
    Community Support

    Hi 10246532 ,

     

    Are there any other filters on the current page? Also can you provide relevant screenshot information and describe it so that I can answer it for you as soon as possible.


    Looking forward to your reply.


    Best Regards,
    Henry

     

  • v-henryk-mstf's avatar
    v-henryk-mstf
    Community Support

    Hi 10246532 ,

     

    I agree with the solution you provided and thank you very much for the feedback.

     

    If the problem has been solved you can mark the reply for the standard answer to help the other members find it more quickly. If not, please point it out.

     

    Best Regards,
    Henry