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

Show fractions in inches dropdown

Hey there,

I have in my app an input for the whole numbers and a dropdown for the fractions of the inches.

Side to that, I have a label that show the max and min.

1. I want the inches to shown as fractions.

2. If I write 4 3/8 it will recognized it as 4+3/8, as for now it is not.

thanks

2 ACCEPTED SOLUTIONS

Accepted Solutions
Super User III
Super User III

@Racheli 
The key here is to ensure the fractions are stored as text instead instead of numbers.

 

Suppose you have a Text Input that will receive the inches value and is initially blank.  Put this code in the Format property of the dropdown to ensure only numbers can be input.

Format.Number

 

Then your fractions dropdown has these values in the Items property

["1/4","3/8","1/2","5/8","3/4","7/8"]

 

Finally, put this code in the Text property of the label to display the fractional number

TextInput_Inches.Text&"-"&Dropdown_Fraction.Selected.Value

 

Now the number will display like this

4-3/8

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

@Racheli 
Click on the dropdown for fractions.  Then, look up at the formula bar in PowerApps Studio.  You can change the current property to the left of the formula bar.

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

4 REPLIES 4
Super User III
Super User III

@Racheli 
The key here is to ensure the fractions are stored as text instead instead of numbers.

 

Suppose you have a Text Input that will receive the inches value and is initially blank.  Put this code in the Format property of the dropdown to ensure only numbers can be input.

Format.Number

 

Then your fractions dropdown has these values in the Items property

["1/4","3/8","1/2","5/8","3/4","7/8"]

 

Finally, put this code in the Text property of the label to display the fractional number

TextInput_Inches.Text&"-"&Dropdown_Fraction.Selected.Value

 

Now the number will display like this

4-3/8

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

Any chance for PrtScn for each step you wrote?

Couldn't find the "items"?

Thanks

@Racheli 
Click on the dropdown for fractions.  Then, look up at the formula bar in PowerApps Studio.  You can change the current property to the left of the formula bar.

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

@ mdevaney thanks for sharing

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Check out the Power Apps Community Call for January 2021

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (4,046)