cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
vikna
Helper III
Helper III

Change FIll Colour Based on TextInput

Hi Team,

I would like to know how to use a Switch command to change the fill color of "TOTAL" if the number : 

is <10, change to RED

if more or equals 10 and less than 20 , change to YELLOW

otherwise, its default colour

 

 

vikna_0-1620799368256.png

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Ethan_R
Responsive Resident
Responsive Resident

Hi @vikna ,

You can use this in the Fill Property of Total.

If(Value(Self.Text) < 10, Red,
    If(Value(Self.Text) < 20, Yellow,
    DefaultColor
    )
)
 
Use your default color or else it'll go black
Hope this helps.
 

View solution in original post

This worked!!! Thank you very much !

vikna_0-1620802398524.png

 

View solution in original post

2 REPLIES 2
Ethan_R
Responsive Resident
Responsive Resident

Hi @vikna ,

You can use this in the Fill Property of Total.

If(Value(Self.Text) < 10, Red,
    If(Value(Self.Text) < 20, Yellow,
    DefaultColor
    )
)
 
Use your default color or else it'll go black
Hope this helps.
 

View solution in original post

This worked!!! Thank you very much !

vikna_0-1620802398524.png

 

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,137)