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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

what-if parameter changes my input

Well known issue:

 

what-if parameter, p:
p = GENERATESERIES(0, 400, 0.01)

 

--> Problem: The selected value will be rounded up or down

 

The problem seems to be fixed for whole numbers, is there a workarround for decimals?

 

(I know the input should be limited to 1000 Values but it is not possible for calculation)

1 ACCEPTED SOLUTION
selimovd
Super User
Super User

Hey @Anonymous ,

 

that's because you have more than 1002 values. Then it will take random values in the whole range.

Check the following article on what exactly is the problems and what alternatives are there:

Why is it sometimes not possible to select the exact number in the what-if parameter and how can this be solved? - What the fact.bi

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

I have solved this issue based on Denis suggested solution and attached a Rounddown function to it. This means if a user will input 5.00 the float might round up to 5.01 in any visual. To avoid that and other issues I use the rounddown(min(input),2)
--> 5.00 

Anonymous
Not applicable

Thank you Denis for your quick reply.

Great link! 
If I use your 2. option of the suggested solution and change the type of slicer to "Less than or equal to" the problem still occurs. 

123.JPG



selimovd
Super User
Super User

Hey @Anonymous ,

 

that's because you have more than 1002 values. Then it will take random values in the whole range.

Check the following article on what exactly is the problems and what alternatives are there:

Why is it sometimes not possible to select the exact number in the what-if parameter and how can this be solved? - What the fact.bi

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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