web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Answered

IF Function

(0) ShareShare
ReportReport
Posted on by 392

Hello @ all

 

if the value in label 21 is higher than in Body3_9 then it will be green, otherwise it will be red.
I am missing the 3rd option in this formula. If Body3_9 is empty, label 21 becomes orange.

 

If(Value(Label21.Text)>Value(Body3_9.Text);RGBA(116; 177; 102; 1);RGBA(169; 018; 020; 1))

 

Thanks for your help

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,921 Most Valuable Professional on at

    Hi @Robertjde ,

    Try this

    If(
     IsBlank(Body3_9.Text);
     RGBA(169; 018; 020; 1);
     If(
     Value(Label21.Text)>Value(Body3_9.Text);
     RGBA(116; 177; 102; 1);
     RGBA(169; 018; 020; 1)
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • UdayAdhikari Profile Picture
    450 Most Valuable Professional on at

    @Robertjde - please give this a try! 

     

    If(IsBlank(Body3_9.Text), Orange, Value(Label121.Text)>Value(Body3_9.Text),RGBA(116, 177, 102, 1),RGBA(169, 018, 020, 1))

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Thanks 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 234 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard