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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
10246532
Advocate I
Advocate I

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

1 ACCEPTED SOLUTION

I succeded in creating a minimal report with dummy tables reproducing the problem

you cak download it at

https://polimi365-my.sharepoint.com/personal/10246532_polimi_it/_layouts/15/onedrive.aspx?id=%2Fpers...

bye

Luigi

 

View solution in original post

4 REPLIES 4
v-henryk-mstf
Community Support
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

v-henryk-mstf
Community Support
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

 

I succeded in creating a minimal report with dummy tables reproducing the problem

you cak download it at

https://polimi365-my.sharepoint.com/personal/10246532_polimi_it/_layouts/15/onedrive.aspx?id=%2Fpers...

bye

Luigi

 

I reproduced the problem of my colleague creating a simpler report with

- a page with one slicer (copied & pasted fron the original report) and a table

- a page with the same slicer created from scratch and the same report

The report is in live connect mode.

Here you can see the relation betwen the two tables involved.

badslicer0.png

Here you can see that  selecting the same value the two slicer produce inverted  condition, with the same effect.

badslicer1.png

Unfortunately deselecting all values the effects are different

badslicer2.png

Settings of two slices are identical

badslicer3.png

Another symptom is that with the bad slicer you can obtain multi-select without control, despite its setting.

thanks

have a nice day

Luigi

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

Find out what's new and trending in the Fabric Community.