cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Sphillips1
Level: Powered On

Greater Than conditional formating

Hello,

I am new to powerapps and this forum. I have used this are as a resource for a lot of my Powerapps questions. So I decided to reach out to the commuity to see if I can get an answer.

 

Issue
I am trying to get a Datacardvalue box inside a display from to display a red background when the value is not equal to or greater than X value.
I have tried to use a rule to accomplish this but have had no success. Attached are screen shots of the desired results that were achieved by using a powerapp made condition: score_DataCard1.Default = "123"
When I try: score_DataCard1.Default < "123" I get the error "invalid argument type. Expecting a number value". No matter how I try and format the condition I get the same error.
Any help would be great. This would be a cool feature to have for my app but it will not stop my deveploment.

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Greater Than conditional formating

One of the issues is that you are trying to use a math operator "<" with a string.  Try adding the following formula to the Fill property of the DataCardValue you want to change colors.

 

If(Value(DataCardValue4.text) < 123, RGBA(255, 0, 0, 1)RGBA(255, 255, 255, 1))

 



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
2 REPLIES 2
Super User
Super User

Re: Greater Than conditional formating

One of the issues is that you are trying to use a math operator "<" with a string.  Try adding the following formula to the Fill property of the DataCardValue you want to change colors.

 

If(Value(DataCardValue4.text) < 123, RGBA(255, 0, 0, 1)RGBA(255, 255, 255, 1))

 



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
Sphillips1
Level: Powered On

Re: Greater Than conditional formating

Thank you so much! What a great solution! I get so hyper focused on one way of doing things I can't see the other ways to acheive the goal.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, September 18th at 8am PDT

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 224 members 4,711 guests
Please welcome our newest community members: