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 Platform Community / Forums / Power Apps / Conditional formatting...
Power Apps
Answered

Conditional formatting for label - color

(0) ShareShare
ReportReport
Posted on by 37

Hi,

 

I'm a bit stuck to what is probably a trivial matter. 

I cant seem to do an if statement relating to changing color of label text. 

I've tried this:

 

If(Value(Label9_13.Text)>0,Red,Green)

 

but it doesnt seem to work? Any ideas 

 

Label9_13 is a calculation based on the subtraction of two figures:

 

Text(Value(Label9_12-Label9_11),"$#,###")

 

Categories:
I have the same question (0)
  • TheRobRush Profile Picture
    11,128 Moderator on at

    Working in test I set up, what results are you getting.

  • svp Profile Picture
    37 on at

    I keep getting an error on the color section

    svp_1-1678116786640.png

     

    svp_2-1678116826500.png

     

    svp_3-1678116878590.png

  • TheRobRush Profile Picture
    11,128 Moderator on at

    Hover over your red x and tell me what it says

  • svp Profile Picture
    37 on at

    svp_0-1678117331768.png

     

  • TheRobRush Profile Picture
    11,128 Moderator on at

    ok, hover over each portion of your if statement, one of them will give you an error message. need to see whats going on in it

  • Verified answer
    svp Profile Picture
    37 on at

    ah, thank you Rob! It looks like you have to write like this for it to work

     

    If(Value(Label9_13.Text)>0,Color.DarkRed,Color.DarkGreen)

  • Verified answer
    TheRobRush Profile Picture
    11,128 Moderator on at

    TheRobRush_0-1678118011402.png

     

    Haha, not always, mine was working fine. But glad you got it found!

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard