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

Community site session details

Session Id :
Power Apps - Building 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),"$#,###")

 

I have the same question (0)
  • TheRobRush Profile Picture
    11,128 Moderator on at
    Re: Conditional formatting for label - color

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

  • svp Profile Picture
    37 on at
    Re: Conditional formatting for label - color

    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
    Re: Conditional formatting for label - color

    Hover over your red x and tell me what it says

  • svp Profile Picture
    37 on at
    Re: Conditional formatting for label - color

    svp_0-1678117331768.png

     

  • TheRobRush Profile Picture
    11,128 Moderator on at
    Re: Conditional formatting for label - color

    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
    Re: Conditional formatting for label - color

    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
    Re: Conditional formatting for label - color

    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

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 819 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 308 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 222 Super User 2025 Season 2

Last 30 days Overall leaderboard