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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
mp390988
Post Patron
Post Patron

Slicer input box misbehaving

Hi,

 

Has anyone experienced any issues manually entering a value in a slicer box?
I try to enter 15 and it puts in 16.

I try to enter 20 and it puts in 19.

I try to enter 21 and it puts in 22.

Can't see to get the number I try to enter.

 

mp390988_0-1753903108865.png

 

 

Thanks,

1 ACCEPTED SOLUTION

Here is the code for the measure:

SelectedValue = SELECTEDVALUE('NumberRange'[Value], 0)

Replace 'NumberRange' with your calculated table name.

Replace [Value] with the column name from that table.


Did it work? 👍 A kudos would be appreciated
🟨 Mark it as a solution to help spread knowledge 💡

 

🟩 Follow me on LinkedIn

View solution in original post

11 REPLIES 11
v-kpoloju-msft
Community Support
Community Support

Hi @mp390988,

Thank you for reaching out to the Microsoft fabric community forum. Also, thanks to @DataVitalizer, for his inputs on this thread. Here I provided some steps those might be resolve the issue which is you faced. Please go through the below steps. Yes, this is a known behaviour in Power BI, and it can be a bit confusing at first.

What is likely happening here is that the slicer is connected to a column that does not include every number in the range you are trying to enter. So, when you type something like “15,” but “15” does not actually exist in the data, Power BI automatically jumps to the closest available number like “16” or “14.”

To fix this, there are a couple of reliable options:

For general info on how slicers behave, this doc is also useful:
Slicers in Power BI - Power BI | Microsoft Learn

Hope this helps clarify things and let me know what you find after giving these steps a try happy to help you investigate this further.

Thank you for using the Microsoft Fabric Community Forum.

Hi @mp390988,

Just checking in to see if the issue has been resolved on your end. If the earlier suggestions helped, that’s great to hear! And if you’re still facing challenges, feel free to share more details happy to assist further.

Thank you.

Hi @mp390988,

Hope you had a chance to try out the solution shared earlier. Let us know if anything needs further clarification or if there's an update from your side always here to help.

Thank you.

Hi @mp390988,

Just wanted to follow up one last time. If the shared guidance worked for you, that’s wonderful hopefully it also helps others looking for similar answers. If there’s anything else you'd like to explore or clarify, don’t hesitate to reach out.

Thank you.

mp390988
Post Patron
Post Patron

Hi @DataVitalizer ,

My slicer was created using the below:

mp390988_0-1753905223702.png

 

which in turn created the following table:

mp390988_1-1753905369340.png

 




Try to switch the slicer to Dropdown mode instead of the input box, or alternatively use a numeric slicer based on a separate integer column (1 to 3000) instead of the What-If parameter to allow precise manual entry without snapping errors.

Did it work? 👍 A kudos would be appreciated
🟨 Mark it as a solution to help spread knowledge 💡

 

🟩 Follow me on LinkedIn

so should I create a calculated table using GENERATESERIES?
I realised my customerCount measure display over 10 thousand customers.

So I need to put the name of the measure in my Generateseries

Yes, create a calculated table with GENERATESERIES(1, 3000, 1) to get a clean number list for your slicer.

 

You don’t put the measure name in it but just use this table to filter or compare against your customerCount measure. 

Did it work? 👍 A kudos would be appreciated
🟨 Mark it as a solution to help spread knowledge 💡

 

🟩 Follow me on LinkedIn

ok but how do i pass the value entered in the slicer to a measure?

My slicer is based on the GENERATESERIES I created manually.

As you can see from the image below, I entered 5 in my slicer but creating a measure called val and dropping it into a visual card displays BLANK when it should display 5.

 

mp390988_0-1753908863631.png

 

Here is the code for the measure:

SelectedValue = SELECTEDVALUE('NumberRange'[Value], 0)

Replace 'NumberRange' with your calculated table name.

Replace [Value] with the column name from that table.


Did it work? 👍 A kudos would be appreciated
🟨 Mark it as a solution to help spread knowledge 💡

 

🟩 Follow me on LinkedIn

DataVitalizer
Solution Sage
Solution Sage

Hi @mp390988 


Is your slicer based on a What-If parameter or a regular field from a table?

Did it work? 👍 A kudos would be appreciated
🟨 Mark it as a solution to help spread knowledge 💡

 

🟩 Follow me on LinkedIn

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors