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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Anonymous
Not applicable

Slicers - force '(blank)' option and select from others

Hi,

I have a slicer with options: '(Blank)', A, B, ...

The way the data/measures are set up means I need '(Blank)' (ie the rows in the data where this slicer field is missing) to always be selected, along with any of the other options the user chooses. 

Is there a way to force the (Blank) option to be ticked in the slicer? So the user will always have (Blank) + whichever their choices are from the remaining options?

 

Thanks for any help

1 ACCEPTED SOLUTION

Hi @Anonymous ,
Not sure how to achieve this when more than one value is selected in the slicer apart from Blank. 

 

But in case you want to use single selection where a user can select only value along with blank always available/filtered/selected. You can create one more disjoined table of the field used in the slicer. Add a measure like below and apply the filter 1 as a visual level filter.

 

Filter = IF(or(ISBLANK(SELECTEDVALUE(Data[Class])),(SELECTEDVALUE(Class[Class])=SELECTEDVALUE(Data[Class]))),1,0)
 
Here the data table is the fact table which contains all your data and class table is the dimension table not having a relationship with the data(fact) table.

 

jaideepnema_0-1642134025306.png

 

Check if the attached pbix helps to answer your query .

 

Happy to help !!

 

Please accept this as a solution if your question has been answered !!

Appreciate a Kudos 😀

 

Connect with me on LinkedIn: https://www.linkedin.com/in/jaideepnema/

 

View solution in original post

4 REPLIES 4
ParkingLotView
New Member

This is very helpful. Thank you

 

I noticed that this works for single selections only. Is there a way I could have the blanks permanently included even if I select multiple items. I'd really appreciate your help on this.

jaideepnema
Solution Sage
Solution Sage

Hi @Anonymous ,
i really doubt if you can force select a particular field in a slicer and change the other one.

 

As a workaround I would suggest to add two slicer lets say: First and Second, first  shouldnt interact with second one but the opposite can happen. You can select Blank from the first slicer and even hide it using bookmarks if required.

 

Please accept this as a solution if your question has been answered !!

Appreciate a Kudos 😀

Anonymous
Not applicable

thanks for your reply!

If I put in a second slicer with the same field and then select an option, the first filter no longer has the entire option list (just the one I selected shows) - as the data has been filtered already

Hi @Anonymous ,
Not sure how to achieve this when more than one value is selected in the slicer apart from Blank. 

 

But in case you want to use single selection where a user can select only value along with blank always available/filtered/selected. You can create one more disjoined table of the field used in the slicer. Add a measure like below and apply the filter 1 as a visual level filter.

 

Filter = IF(or(ISBLANK(SELECTEDVALUE(Data[Class])),(SELECTEDVALUE(Class[Class])=SELECTEDVALUE(Data[Class]))),1,0)
 
Here the data table is the fact table which contains all your data and class table is the dimension table not having a relationship with the data(fact) table.

 

jaideepnema_0-1642134025306.png

 

Check if the attached pbix helps to answer your query .

 

Happy to help !!

 

Please accept this as a solution if your question has been answered !!

Appreciate a Kudos 😀

 

Connect with me on LinkedIn: https://www.linkedin.com/in/jaideepnema/

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Kudoed Authors