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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
AishwaryaS
Frequent Visitor

How to group values in a slicer

Hi,

 

I have a slicer with a list of Product ID (eg) : TV, FRIDGE, AC, WASHER, BAG, BOOKS, PENCIL etc

 

I want to group the values and have only the grouped header in the slicer

HOME APPLIANCES which should include (TV, FRIDGE, AC, WASHER) and

SCHOOL which should include (BAG, BOOKS, PENCIL)

 

My output slicer should contain only HOME APPLIANCES AND SCHOOL.

 

Please let me know how to achieve this.

1 ACCEPTED SOLUTION
Samarth_18
Community Champion
Community Champion

Hi @AishwaryaS ,

 

The best which I could suggest is to create a new column with switch condition as below and use it in the slicer.:-

 

column =
SWITCH (
    TRUE (),
    [product list] IN { "TV", "FRIDGE", "AC", "WASHER" }, "HOME APPLIANCES ",
    [product list] IN { "BAG", "BOOKS", "PENCIL" }, "SCHOOL"
)

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

1 REPLY 1
Samarth_18
Community Champion
Community Champion

Hi @AishwaryaS ,

 

The best which I could suggest is to create a new column with switch condition as below and use it in the slicer.:-

 

column =
SWITCH (
    TRUE (),
    [product list] IN { "TV", "FRIDGE", "AC", "WASHER" }, "HOME APPLIANCES ",
    [product list] IN { "BAG", "BOOKS", "PENCIL" }, "SCHOOL"
)

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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