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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
mo1988
Helper I
Helper I

Numeric Range Parameter Issue

Whenever I create a New Paramater - Numeric Range (Whole Number) with:
Minimum Value: 0
Maximum Value: 1,000,000
Increment: 1
Default: 0
Slicer Type: Single Value

 

I get an error while inserting a number in the single value input field. For example if I enter:

1000 and hit enter, output is 999

2000 and hit enter, output is 1998 .. 

 

Any fix to this issue?

 

Thanks

1 ACCEPTED SOLUTION
Stachu
Community Champion
Community Champion

this is due to sampling of the what-if parameters (more than 1000 values):

https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-what-if#considerations-and-limita...

https://community.powerbi.com/t5/Desktop/What-If-Parameters-Rounding-Crazy/td-p/993836

You can try creating the table in M, that should work fine:

let
    Source = {1..1000000},
    #"Converted to Table" = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
    #"Renamed Columns" = Table.RenameColumns(#"Converted to Table",{{"Column1", "Parameter"}}),
    #"Changed Type" = Table.TransformColumnTypes(#"Renamed Columns",{{"Parameter", Int64.Type}})
in
    #"Changed Type"

 



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

View solution in original post

1 REPLY 1
Stachu
Community Champion
Community Champion

this is due to sampling of the what-if parameters (more than 1000 values):

https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-what-if#considerations-and-limita...

https://community.powerbi.com/t5/Desktop/What-If-Parameters-Rounding-Crazy/td-p/993836

You can try creating the table in M, that should work fine:

let
    Source = {1..1000000},
    #"Converted to Table" = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
    #"Renamed Columns" = Table.RenameColumns(#"Converted to Table",{{"Column1", "Parameter"}}),
    #"Changed Type" = Table.TransformColumnTypes(#"Renamed Columns",{{"Parameter", Int64.Type}})
in
    #"Changed Type"

 



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.