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

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (46,985)