web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 545 Most Valuable Professional

#2
Haque Profile Picture

Haque 314

#3
Kalathiya Profile Picture

Kalathiya 234 Super User 2026 Season 1

Last 30 days Overall leaderboard