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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
mgooren
Frequent Visitor

Between slicer with categories

For a project I am working on I have an age group of bills with a certain due date. I created groups for them that calculates the amount of days left until they need to be paid. I want the user to use a between slicer that shows the groups, but since it is categorical data and not number related it doesn't work. 

 

mgooren_0-1702566679271.png

mgooren_1-1702566722609.png

So in this case I want "Verleden" (Past in english) to be the minimum and ">30" to be the maximum.

 

I don't know if I'm missing something obvious, but I cant seem to find the right way to do it.

 

Thank you in advance!

2 ACCEPTED SOLUTIONS

Hi @mgooren 
I think that the answer is no, unfortunately.

But maybe a card with catching selections near the slicer can help.
Something like that :

Ritaf1983_0-1702901167510.png

I attached a pbix , if it helps you can follow my steps.

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly



View solution in original post

mgooren
Frequent Visitor

Whilst I haven't found a proper solution, I have created a workaround. I connected a table containing the order in which I need the categories (1-5) with the corresponding categories. I created the between slicer with these numbers but set the value color to the background so it doesn't show. Then I overlayed it with 2 card visuals. One with the lowest selected category, one with the maximum. The DAX formula is as follows:

 

MinimumCategorieContracten =
IF(MIN(VolgordeContracten[Volgorde])=1,
"Verleden",
IF(MIN(VolgordeContracten[Volgorde])=2,
"<11",
IF(MIN(VolgordeContracten[Volgorde])=3,
"<21",
IF(MIN(VolgordeContracten[Volgorde])=4,
"<31",">30"))))
 
 
Same goes for Maximum, but obviously with MAX().
 
I know this isn't optimal but it does work.
If anyone has any improvements, please do tell!
 
 

View solution in original post

5 REPLIES 5
mgooren
Frequent Visitor

Whilst I haven't found a proper solution, I have created a workaround. I connected a table containing the order in which I need the categories (1-5) with the corresponding categories. I created the between slicer with these numbers but set the value color to the background so it doesn't show. Then I overlayed it with 2 card visuals. One with the lowest selected category, one with the maximum. The DAX formula is as follows:

 

MinimumCategorieContracten =
IF(MIN(VolgordeContracten[Volgorde])=1,
"Verleden",
IF(MIN(VolgordeContracten[Volgorde])=2,
"<11",
IF(MIN(VolgordeContracten[Volgorde])=3,
"<21",
IF(MIN(VolgordeContracten[Volgorde])=4,
"<31",">30"))))
 
 
Same goes for Maximum, but obviously with MAX().
 
I know this isn't optimal but it does work.
If anyone has any improvements, please do tell!
 
 
Ritaf1983
Super User
Super User

Hi @mgooren 

You didn't miss anything.
Slicer between can work only with ranges of numeric / date data types.

Groups that you created are texts, so you can use only lists/buttons/dropdown types slicers.

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

So there is no way to link integers from 1-5 to the categories, and use them as a between slicer but make it display the group name rather than the integers?

Hi @mgooren 
I think that the answer is no, unfortunately.

But maybe a card with catching selections near the slicer can help.
Something like that :

Ritaf1983_0-1702901167510.png

I attached a pbix , if it helps you can follow my steps.

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly



Thank you for your effort!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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