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 / Comparing Collection T...
Power Apps
Unanswered

Comparing Collection Text to Table Values for Images

(0) ShareShare
ReportReport
Posted on by 10

Hello, 

 

I have a table that contains images paths. 

 

samdean332_0-1623766212452.png

 

I want to compare the titles to items in a collection, and if they match, display that image for the given technology.  So, I have tried: 

samdean332_1-1623766557464.png

It keeps complaining that it expects an image value, but even when I trying a manually uploaded media, I get the same error:

 

samdean332_2-1623766836578.png

 

 

How can I dynamically comparing Technology.Titles to an image table to display the corresponding image? Or, how would this potentially work with manually uploaded images?

 

Thank you 

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @samdean332 

    You cannot set properties of controls in PowerApps with an equal operator.

    Your formula must return the Value that you want for the Property you are using.  So in your case, the Image property formula should be:

    If(ThisItem.Technology in Icons.Title, ThisItem.'Icon Path')

     

    However, you have not given context of where this is in your app.  It appears to be in a Gallery since you are referencing ThisItem.  

    So, without knowing that detail, the above formula is a general formula for what you need.

     

    I hope this is helpful for you.

  • samdean332 Profile Picture
    10 on at

    Thank you for the info. To provide more info, ThisItem.Technology contained in a Gallery/Collection created earlier in the App. However, Icons is a static Excel table uploaded to the app, so I cannot use a ThisItem.'Icon Path' to reference that particular row - or at least, I do not know how to do that. Basically, I just want to take my collection compare to the rows in the Icons table and retrieve the corresponding images. It would be displayed in this gallery: 

    samdean332_0-1623769028941.png

     

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @samdean332 What is the Items property for your Gallery? Is it the Collection that contains the data loaded from the Excel file or is it referring to something else? If so, what the data in this Collection? Please provide more details.

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

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard