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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Slicer to include or exclude rows with specific text

Hello,

I have the following table and i am trying to make a slicer that would show a checkbox with the two options: "Yes" or "No". The selection in the checkbox would either show all rows including, otherwise excluding the text "not received _ no group", respectively. Is that possible? Any help is much appreciated!

 

Document IDAmountReceived dateText
24897398906/07/2022not received _ no group
27387178107/07/2022not received _ no group
25119451006/07/2022cleared
25406646705/07/2022not received _ no group
24924657005/07/2022not received _ no group
24893443706/07/2022received _ pending
25403655405/07/2022received _ pending
24845640805/07/2022not received _ no group
24924704906/07/2022cleared
24618641105/07/2022cleared
24622441305/07/2022cleared
24891437205/07/2022not received _ no group
24891672905/07/2022cleared
24925677005/07/2022recorded in advance
27415654805/07/2022recorded in advance
27415641405/07/2022recorded in advance
27415645005/07/2022not received _ no group
27415654405/07/2022cleared
27415654605/07/2022invoiced
27415658305/07/2022invoiced
27415661505/07/2022recorded in advance
1 ACCEPTED SOLUTION
TheoC
Super User
Super User

Hi @Anonymous 

 

You can create a calculated column that you can then use for the slicer.  Just create a conditional formula to use in the calculated column like the following:

 

Slicer = 

SWITCH (
TRUE () ,
'Table'[Text] = "not received _ no group" , "Yes" ,
"No"
)

You can then use the new calculated column to create the Slicer you want 🙂

 

TheoC_0-1658818207808.png

 

Hope this helps!

Theo

 

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

View solution in original post

5 REPLIES 5
TheoC
Super User
Super User

Hi @Anonymous 

 

You can create a calculated column that you can then use for the slicer.  Just create a conditional formula to use in the calculated column like the following:

 

Slicer = 

SWITCH (
TRUE () ,
'Table'[Text] = "not received _ no group" , "Yes" ,
"No"
)

You can then use the new calculated column to create the Slicer you want 🙂

 

TheoC_0-1658818207808.png

 

Hope this helps!

Theo

 

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

Anonymous
Not applicable

@TheoC Thanks for your reply! Is it possible to add a third option to the slicer: "Show all" where the slicer would have no effect, that is, it will show all rows and not filter anything?

Hi @Anonymous you can do this by clicking on the actual Slicer visual and using the options to "select all".  Hopefully this is what you're after.

 

TheoC_0-1658820135128.png

 

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

Anonymous
Not applicable

@TheoC Thanks for this suggestion but i would like to keep it as a simple single-click checkbox selection list. The issue with the "Select all" option is that if it is selected, then if another option is selected, then it actually excludes the latter instead of moving to that selection only.

 

For example, after clicking on the "Select all" option:

MakeItReal_2-1658821967090.png

Then, if the option "No" is clicked, instead of selecting only "No", it actually excludes it:

MakeItReal_3-1658822003197.png

So, i think maybe having an option in the formula where it would do the same as "Select all" or select none. Is that possible?

Hi @Anonymous you can just tick "Single Select" from the options. There is no need for additional formulas etc.

 

Hope that helps.

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors