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

Issue with Conditional Formatting

Dear All,

 

I am total dummy with no programming background, your insights or solutions for the question below is highly appreciated.

First, I have a table called -  movement

Name (Type=Text)Notes (Type=Text)Online (Type= Yes/No)
ABCDeskOnline
XYZRestOffline

 

What I am trying to do is make the rectangle fill colour change to black when is Offline.

So I've put in the function below in the rectangle's fill column

If(ThisItem.IsSelected, RGBA(0,0,0,0.1), If(ThisItem.Online="Offline",Black,RGBA(0,0,0,0)))

 

Georgetown15x_0-1600818336496.png

 

And it seems the function is not right...Could someone please help? Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Super User II
Super User II

You mentioned Online was a Yes/No, or Boolean field - correct?

 

If(ThisItem.IsSelected, RGBA(0,0,0,0.1), If(ThisItem.Online,Black,RGBA(0,0,0,0)))

 

If the field is a Yes/No (Boolean, with a True/False as its actual value), then you can check it explicitly.

View solution in original post

2 REPLIES 2
Super User II
Super User II

You mentioned Online was a Yes/No, or Boolean field - correct?

 

If(ThisItem.IsSelected, RGBA(0,0,0,0.1), If(ThisItem.Online,Black,RGBA(0,0,0,0)))

 

If the field is a Yes/No (Boolean, with a True/False as its actual value), then you can check it explicitly.

View solution in original post

You are Legend!

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Top Solution Authors
Top Kudoed Authors
Users online (48,804)