cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KickingApps
Skilled Sharer
Skilled Sharer

Photo collection - Collect distinct for each series

Greetings,

 

I am collecting all photos from a SP library OnStart.  When initializing the collection, I add a column to split the name(s) of the photos.  

ClearCollect(
    colPhotos2,
    AddColumns(
        Photos2, "ddName", First(Split(Name, "-").Result
)))

So, if the name of a photo in the library is:

2018_US1-Montana-Glacier10

The added column in the collection will be:

2018_US1

 

Say I have 10 photos for 2018_US1-Montana-Glacier# and 9 for 2017_BC1_Banff and another 15 for 2018_JP1_Tokyo# -- how can I collect only the first photo for every series?  Too complicate matters and really put a challenge out there, I would ideally like to collect the first photo in every series that is landscape layout rather than portrait.  At this time, there is nothing in my SP library to identify a photo as landscape/portrait.image.png

1 REPLY 1
KickingApps
Skilled Sharer
Skilled Sharer

Looking for a solution still on this one.  I would like to collect the first photo for each 'series' within a group.

 

I

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

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

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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.

Top Solution Authors
Top Kudoed Authors
Users online (2,502)