cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Svyatoslav
New Member

Mark items in list with color based on dropdown filters

Dear Experts,

 

I am creating my first app and haivng a confusion with filters.

 

I am trying to create next. I have a screen "PCPFilter" with 4 dropdown options which fiter my data "Table1_2" based on chosen dropdown options. The output is column "Competency Element" and "Proficiency Level Criteria". 

 

PCP filter.JPG

 

And I have a screen "PCP" list (different data source Table1_3) with "Competency Element" and "Attained Proficiency Element".

This screen showing me data based on Current user.  

////

SortByColumns(Search(Filter(Table1_3,Person_x0020_Name=gvCurrentUser.FullName),TextSearchBox1.Text, "Competency_x0020_Element"), "Competency_x0020_Element")

////

PCP.JPG

 

"Attained Proficiency Element" = "Proficiency Level Criteria" and it can be none, basic, intermediate, advanced. None is lowest, Advanced is highest. 

 

Now I want to mark Competency element in screen "PCP" with green color if "Attained Proficiency Element" >= "Proficiency Level Criteria" or red if "Attained Proficiency Element" < "Proficiency Level Criteria" .

 

I hope you undertand what I want to create. I will appriciate your help and if you send the code which I shoud use as I am new in PowerApp. 

 

Regards,

Svyatoslav

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Re: Mark items in list with color based on dropdown filters

Hi @Svyatoslav ,

Do you want to mark items with different color?

I suggest you insert an icon in the gallery and set the icon's Fill:

If(condition1,red,condition2,green)

I've made a similar test for your reference:96.PNG

Here's my formula:

If(ThisItem.Country="Spain",Red,Green)

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
KKrishnapriya
Frequent Visitor

Re: Mark items in list with color based on dropdown filters

hi @Svyatoslav ,

 

I hope you are using Vertical Gallery Control for PCP Screen,  We can't set different colours for different items of a Vertical Gallery control as all of them inherit the Properties of Template Control(item).

 

Thanks

Svyatoslav
New Member

Re: Mark items in list with color based on dropdown filters

Hello @KKrishnapriya ,

 

Thank you for a fast reply!

 

Yes, I am using  "List" with "Title and Subtitele".

 

Is there a way to mark items in the list based on my filters? May be not color, but somthing different... For example to show in details that it is valid.

 

Regards,

Svyatoslav 

Community Support
Community Support

Re: Mark items in list with color based on dropdown filters

Hi @Svyatoslav ,

Do you want to mark items with different color?

I suggest you insert an icon in the gallery and set the icon's Fill:

If(condition1,red,condition2,green)

I've made a similar test for your reference:96.PNG

Here's my formula:

If(ThisItem.Country="Spain",Red,Green)

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

‘Better Together’ T-Shirt Contest – Winner Announced!

‘Better Together’ T-Shirt Contest – Winner Announced!

And the winner is...

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

Top Solution Authors
Top Kudoed Authors
Users online (6,311)