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
Anonymous
Not applicable

Slicer (between) is not working correctly

Hi,

My data set has FISCAL PERIOD column(DATA TYPE:WHOLE NUMBER) format 201501 to 201912,please see below when I have used fiscal period column in SLICER (BETWEEN) options.It shows some weird behaviour.

Thankscommunitytoday.jpg

1 ACCEPTED SOLUTION
Anonymous
Not applicable

That isn't going to work if you are trying to use a slider style slicer, "between" on numbers is always going to give you all numbers. The slider will see "between 201801 and 201952" as saying "show me all numbers between the values of 201801 and 201952" - which includes numbers like 201899.

 

You could do something tricky like creating two copies of your date table, one called "starting date" and one called "ending date" and then using them as disconnected tables, coding your measures with DAX to work appropriately. But IMO this is a LOT of work for almost no benefit. The user requirement is to allow fiscal periods to be chosen, not to be forced into using a specific type of slicer (that doesn't work at all in this case).

 

Sorry, numeric slider slicers are meant to be used for things like "show me all products that cost between $500 and $1000" - where there might not be an exact price of $500 or $1000 in the data, so the numeric slicer has to allow users to input numbers that aren't in the data.

 

You could also of course just drop the date field in - but then users will see actual dates vs. your fiscal periods.

 

Hope this helps,

Scott

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Can you give some details on what exactly the "weird behaviors" are? Hard to troubleshoot without seeing some sample data and an explanation of exactly what the issue is.

 

Thanks,

Scott

Anonymous
Not applicable

Hi Scott,

Please review the screenshot,

Fiscal Period is showing for 201534 and 201871.In fiscal period column i have 201501,201502,201503,201504 to 201512.

Thanks

 

Anonymous
Not applicable

Ah got it. Sorry very limited time to try to help on the forums and when the problem isn't explicitely stated it's hard to troubleshoot.

 

My guess is that you have FY set up as a numeric field, thus getting the range slicer option. A range slicer like that is always going to give you all valid numeric values between the min and max. I'd try choosing just a list slicer instead of the range slicer. And/or change FY to be text instead of a number, in which case you won't see a range slicer even as an option.

 

Hope this helps,

Scott

Anonymous
Not applicable

Hi Scott,

Thank you so much.

As per my requirements,User wants to see option "BETWEEN" in slicer.

Thanks

Anonymous
Not applicable

That isn't going to work if you are trying to use a slider style slicer, "between" on numbers is always going to give you all numbers. The slider will see "between 201801 and 201952" as saying "show me all numbers between the values of 201801 and 201952" - which includes numbers like 201899.

 

You could do something tricky like creating two copies of your date table, one called "starting date" and one called "ending date" and then using them as disconnected tables, coding your measures with DAX to work appropriately. But IMO this is a LOT of work for almost no benefit. The user requirement is to allow fiscal periods to be chosen, not to be forced into using a specific type of slicer (that doesn't work at all in this case).

 

Sorry, numeric slider slicers are meant to be used for things like "show me all products that cost between $500 and $1000" - where there might not be an exact price of $500 or $1000 in the data, so the numeric slicer has to allow users to input numbers that aren't in the data.

 

You could also of course just drop the date field in - but then users will see actual dates vs. your fiscal periods.

 

Hope this helps,

Scott

Anonymous
Not applicable

Thank you so much Scott for detailed explaniations,I was confused What and How to Explain.Now i am clear.

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.