Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

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
  • 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 🙂

     

     

    Hope this helps!

    Theo

     

5 Replies

  • TheoC's avatar
    TheoC
    Icon for Community Champion rankCommunity Champion

    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 🙂

     

     

    Hope this helps!

    Theo

     

    • Anonymous's avatar
      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?

      • TheoC's avatar
        TheoC
        Icon for Community Champion rankCommunity Champion

        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.