cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
3csman
Impactful Individual
Impactful Individual

Multiple Component Condition

I was hoping this would work. It doesn't see to be. I have an SP library where the file format of image, work, and pdf files are as such:


New Uploads:

2021 CT0000 Ship Captain Charlie Tuna 2_14_2021

 

or 

Inherited Files: (had no date at the end)

2021 CT0000 Ship Captain Charlie Tuna

The first part has always worked. Is there a way to make both work together; if the format doesn't match the first check again against the second, type of thing? Or, can I limit the search to jus the first four fields; regardless of whether the file name has a date in it or not?

Image Control in Gallery:
First(Filter(CQImageCollection, 'Name'=ThisItem.CQYr & " " & ThisItem.UnqID & " " & ThisItem.CQTitle & " " & ThisItem.FrstNm & " " & ThisItem.LstNm & " " & ThisItem.DteofCQ)).'{Link}' & First(Filter(CQImageCollection, 'Name'=ThisItem.CQYr & " " & ThisItem.UnqID & " " & ThisItem.CQTitle & " " & ThisItem.FrstNm & " " & ThisItem.LstNm)).'{Link}'

22 REPLIES 22
3csman
Impactful Individual
Impactful Individual

'...one man's undiscovered rock is already someone else's home.'

 

Meaning, I asked some months back whether something like this would work, and was assured that a condition like this - that looks for two different things at the same time, and only pulls and displays the image desired based on the parameters wasn't possible.

 

Well, I got a fresh start this morning, put the last condition you provided in a new image control and walla, images - old and new, everywhere.

 

Thanks for the help and the patience, Mr. Hayes!😁👍

 

With({_common: ThisItem.CQYr & " " & ThisItem.UnqID & " " & ThisItem.CQTitle & " " & ThisItem.FrstNm & " " & ThisItem.LstNm}, Coalesce( LookUp(CQImageCollection, StartsWith('Title', _common & " " & ThisItem.DteofCQ)), LookUp(CQImageCollection, StartsWith('Title', _common)) ) ).'Thumbnail ({Thumbnail})'.Large

View solution in original post

RandyHayes
Super User III
Super User III

@3csman 

So, all is good now?  Just making sure we go it nailed.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes
3csman
Impactful Individual
Impactful Individual

When I do it, yes.

 

We'll see when my testers are back tomorrow.

 

For now all is good.

 

Standby for more..., maybe.😉

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.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

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