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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
bonus60
Helper I
Helper I

Between slicer for categorical values

Hello together,

 

I need you help again.

 

I am trying to create a between-slicer with categorical values/strings (e.g.: "A", "B", "C", "D", "E", "F"). That is easy with a date column. But I dont have the option to make the slicer as a between slicer with a column which has categorical values.

 

Do you have an idea?

 

Best regards

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @bonus60 ,

Since the data type of the column Category is Text type, it will not display Between option on the slicer...Only the data type of the column is Date or Number, the Between option can enable in the slicer... You can find the details in the following official documentation.

Slicers in Power BI

Numeric range slicerNumeric range slicer

Date slicerDate slicer

 

You can create a calculated column as below to rank the column Category and apply this new column on the slicer. Please find the details in the below screenshot or the attachment...

Rank = RANKX('Table','Table'[Category],,ASC,Dense)

yingyinr_3-1659506703123.png

Best Regards

View solution in original post

7 REPLIES 7
dongtimadiya
New Member

Thanks for sharing the post it was very helpful for me 

amitchandak
Super User
Super User

@bonus60 , Create two independent tables on that and use two slicer for bewteen

 

Category Range Using 2 slicer =
var _max = minx(allselected(Cat1), Cat1[Date])
var _min = maxx(allselected(Cat2), Cat2[Date])
return
calculate(countrows(Table), Filter(Table,Table[Cat] <=_max && Table[Cat] >=_min) )

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak 

 

Thanks for your reply. Could you please describe your solution in detail? I did not get it to be honest.

I have to following table:

 

Table1

CategoryValue
A123
B325
C123
D502
E20
F14

 

 

Now I should create two tables from Table1? 

Anonymous
Not applicable

Hi @bonus60 ,

Base on your provided data, how do you want to display the between slicer?  Could you please provide some examples to describe your expected result? Thank you.

yingyinr_0-1659433346074.png

Best Regards

Hello @Anonymous 

 

thank you for your reply.

 

I just want to create a between slicer for the column Category in Table1, so I can slide between A, B, C, D E, F etc.

 

Something like that: 

betweenSlicer.PNG

 

But I only have the option List and Dropdown within the slicer menu.

 

Do you have an idea?

 

Best regards

 

 

Anonymous
Not applicable

Hi @bonus60 ,

Since the data type of the column Category is Text type, it will not display Between option on the slicer...Only the data type of the column is Date or Number, the Between option can enable in the slicer... You can find the details in the following official documentation.

Slicers in Power BI

Numeric range slicerNumeric range slicer

Date slicerDate slicer

 

You can create a calculated column as below to rank the column Category and apply this new column on the slicer. Please find the details in the below screenshot or the attachment...

Rank = RANKX('Table','Table'[Category],,ASC,Dense)

yingyinr_3-1659506703123.png

Best Regards

Hello togehther,

 

does someone have a solution for my issue?

 

Best regards

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.