I'm new into this.
I have the following formula on a Color property of a Label:
<If(Price.Text>= 1000, Red , Gray)>
<Price.Text> returns a String, so logically it doesn't evaluate.
Obvious questions is, how to convert that into a Number.
I tried <Price.Value> but i believe it doesn't work with labels.
Many thanks.
Solved! Go to Solution.
@Anonymous
Change the Color property of your label to this code:
If(ThisItem.Price>=1000, Red, Black)
---
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."
@Anonymous
Use this code instead:
If(Value(Price.Text)>= 1000, Red , Gray)
---
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."
Hi @Anonymous
If(Value(Price.Text)>=1000,Red,Grey)
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
It worked, but I´'m not getting the expected result. hum
What result are you expecting?
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
To get the pricing on the label, above 1000, to be Red, else Gray (this is inside a gallery)
@Anonymous
Put my code in the Color property of the label to get the desired result.
---
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."
I did that. It doesn't. Weird!
@Anonymous
Can you try changing the Format property of TextInput for Price to this code which will only allow a number input?
Format.Number
Then please erase and retype the number in the text box.
---
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."
I found out the problem.
The Text property was:
ThisItem.Price & "€"
Erasing the € enabled the color. However I´m left without a currency after the price
Check out new user group experience and if you are a leader please create your group
Did you miss the call?? Check out the Power Apps Community Call here!
See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.
User | Count |
---|---|
278 | |
236 | |
83 | |
37 | |
36 |
User | Count |
---|---|
358 | |
239 | |
127 | |
72 | |
50 |