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 / Change Label Content C...
Power Apps
Answered

Change Label Content Color

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a label (ECMmbrDaystoRenewalLbl.Text) with numbers as content that I've dropped into a Gallery.

 

I would like the color of the number to change from default Blue to Red anytime the number in the label is equal to or less than 0.

 

I've tried several combinations of the following, with no success.

 

It only works as written. If I add the < to the condition I get an error.

 

Works: If(ECMmbrDaystoRenewalLbl.Text="0", Red,Blue)

 

Does Not Work: If(ECMmbrDaystoRenewalLbl.Text=<"0", Red,Blue)

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    Change your Color property formula to the following:

    If(Value(Self.Text)<=0, Red, Blue)

     

    I hope this is helpful for you.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Right, again!

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 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard