cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SvenV
Advocate V
Advocate V

Use decimals with slider control

Hi

 

Is it possible to work with decimals with the slider control?

For instance: min = 1, max = 5 and increments of .5 ?

1 ACCEPTED SOLUTION

Accepted Solutions
ShaneSloan
Advocate I
Advocate I

I'm working through setting up a slider to record the body temperature of a patient in Farenheit. I set the slider to default to 986 and then set min / max of 900 / 1090. I then used a caption field and divided the number of the slider by 10 to show the correct value. While this is not ideal, its a viable work-around. 

 

Hope this helps.

View solution in original post

4 REPLIES 4
AKotb
Power Apps
Power Apps

Defining increments is not supported yet in Slider Control

 

 

You can add a new idea on Power Apps ideas forum

https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

 

or Vote up on a related idea

https://powerusers.microsoft.com/t5/PowerApps-Ideas/Slider-Control-Increment-Setting/idi-p/7032

and adding that the increment should support decimal values.

 

Thanks

 

ShaneSloan
Advocate I
Advocate I

I'm working through setting up a slider to record the body temperature of a patient in Farenheit. I set the slider to default to 986 and then set min / max of 900 / 1090. I then used a caption field and divided the number of the slider by 10 to show the correct value. While this is not ideal, its a viable work-around. 

 

Hope this helps.

View solution in original post

Awesome, this works! 🙂

logixcrm
Helper I
Helper I

Here is an idea in case you need a slider with decimal values.

 

Add a Slider control to your canvas, the set the properties as follows

  • Min - 0
  • Max - 10
  • Default - 0
  • Show value - Off
  • Rename the slider to "slider"

The add a text label above the slider, rename the label to "sliderLabel". Set the Text property of the sliderLabel to the following formula - slider.Value / 10

 

That's it, see the picture attached for the result. 😎

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,975)