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 / How to display Two Ima...
Power Apps
Answered

How to display Two Images in a Gallery

(0) ShareShare
ReportReport
Posted on by 5,331 Moderator

I've got an SPList that has attachments.

Each item will have at least two attachments (that are images taken by a mobile app through a Power App application).

Phineas_0-1647015342269.png


I am displaying the SPList data in a Power App Gallery. There are two image controls in the Gallery. Is this the proper way to display these images, or should I have a Gallery in a Gallery?

I can get the first 'related' image to show within the Gallery for each item but not the second related image. I am using the following -

Gallery Items:
SortByColumns(Filter('Test List', StartsWith(Title, TextSearchBox1_2.Text)), "Title", If(SortDescending1, Descending, Ascending))

Image Property:
First(ThisItem.Attachments).Value

Phineas_1-1647015657196.png

 

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

    @Phineas 

    If you will ONLY have 2 attachments, then you can stick with the way you are doing it.  Just change your second image property to : Last(ThisItem.Attachments).Value

     

    If you expect to have a variable number of attachments, then consider a gallery in your gallery.

     

    I hope this is helpful for you.

  • Phineas Profile Picture
    5,331 Moderator on at

    Newman!

    I was close; I was trying Second, then realized that's a timer function. Last makes sense, and it do work.

    Thank you.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 305 Most Valuable Professional

#2
11manish Profile Picture

11manish 212

#3
Valantis Profile Picture

Valantis 167

Last 30 days Overall leaderboard