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.

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
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (3,084)