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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Coloring of negative o...
Power Apps
Answered

Coloring of negative or positive calculations in labels

(0) ShareShare
ReportReport
Posted on by 126

Hi, everyone,

 

I have the problem that I would like to color label elements that 1. have data loaded from SharePoint, or 2. calculations based on other labels with the same data, if the calculated values are lower than 0 (negative range), equal to 0 or are above zero.

 

I tried this as follows...

 

Fill-Property:

If(Self.Size > 0;RGBA(218; 104; 102;1);RGBA(62; 204; 111;1))

 

... but the negative area is not recognized in both attempts. The function only recognizes whether the value is below zero or above zero, but not that it is a negative value with a minus sign in front of it.

 

I hope you can help me with that.

 

regards

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,127 Most Valuable Professional on at

    Hi @Livearus ,

    Have you tried

    If(
     Value(Self.Text) > 0;
     RGBA(218; 104; 102;1);
     RGBA(62; 204; 111;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.

    Visit my blog Practical Power Apps

  • Livearus Profile Picture
    126 on at

    Thank you for your help. Worked. You probably didn't expect anything else either 🙂

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

Forum hierarchy changes are complete!

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard