cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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

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

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

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 

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
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,602)