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 / Change Icon Based upon...
Power Apps
Answered

Change Icon Based upon Critera From two SP Lists

(0) ShareShare
ReportReport
Posted on by 643

I Would like to an icon which changes based upon the Gallery selection and wether or not it matches anothe SP list.

 

jamescosten_0-1699974779243.png

 

The gallery Works Order Number to look up against the Qaulity Alerts SP list Colum Job Number, If found then Cahnge Icon Else Leave as is.

 

I Know im doing something obviously wrong. Both SP Columns are Text fields.

Categories:
I have the same question (0)
  • Verified answer
    Nicbo Profile Picture
    145 on at

    Hi, 
    You can use lookup here instead, so somthinge like this:

    If(LookUp(YourSpSite, 'Job Number' = Gallery12.Selected.'Works Order No', true), Icon.CancelBadge, Icon.CheckBadge)


    Hope it helps 

  • jamescosten Profile Picture
    643 on at

    Thank you Nicbo, Works exactly as required. I just wanted to add an addiontal functionality.

     

    jamescosten_0-1699976102018.png

    But the Icon remains black? Any ideas?

  • Nicbo Profile Picture
    145 on at

    Nice to hear!
    You're almost there, in the if-statement you do a control, in this case if the icon is icon.Cancel the color should be red, otherwise another color, so you dont have to repeat the icon = again. So in the Color propery of the icon it should look something like this:

     

    If(Icon5_2.Icon = Icon.Cancel, Color.Red, Color.Green)

     


    Hope it helps!

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
Kalathiya Profile Picture

Kalathiya 421

#2
WarrenBelz Profile Picture

WarrenBelz 386 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 339 Super User 2025 Season 2

Last 30 days Overall leaderboard