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
Anonymous
Not applicable

Ignoring a particular item in slicer on a table visual

I have a slicer with 4 items. Eg: x,y,z,and o.

Requirements:

  1. If I select O ,the table visual should display everything as if x,y and z  selected.If any item other than O is selected, visual should display only values correspondng to single selection.Is it possible to ignore only one selection? x->x,y->y,z->z,O->x+y+z
  2. The slicer should behave normally for all other visuals in the same page.

       How can I accomplish this?

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

You can use visual level filter:

 

Measure = IF(ISFILTERED(Table2[category]),IF(MAX(Table2[category])="o",1,IF(MAX(Table2[category])= MAX(Table1[Category]),1,0)),1)

 

Capture58.PNG

 

test4.gif

 

Please refer to the pbix file.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

I can't use another table as slicer in this case. The slicer should behave normally with all other visuals except the table.

Hi @Anonymous ,

 

The normal solution for your case is creating a disconnected table with these slicer value as mentioned by amitchandak.

 

The detailed solution depends on your data model. Would you please show us sample pbix file, Then there may be a solution to your case.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

Anonymous
Not applicable

sitn_sample1 - Power BI Desktop.pngsitn_sample2 - Power BI Desktop.png

Hi @Anonymous ,

 

You can use visual level filter:

 

Measure = IF(ISFILTERED(Table2[category]),IF(MAX(Table2[category])="o",1,IF(MAX(Table2[category])= MAX(Table1[Category]),1,0)),1)

 

Capture58.PNG

 

test4.gif

 

Please refer to the pbix file.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

Anonymous
Not applicable

Thanks.. It worked

amitchandak
Super User
Super User

@Anonymous , prefer an independent table for these values. Then you can have a measure like 

 

measure =

var _val = selectedvalue(Dim[Col])

return

if(_val = "o", calculate(sum(Table[Value]), filter(Table, Table[Col] <> _val)) , calculate(sum(Table[Value]), filter(Table, Table[Col] = _val)))

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.