cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Return all values from collection

Hello,

 

I think what I am looking for is relatively simple, if I find the correct syntax/function to use... 

 

Essentially I want to:

1. Filter a collection to the point where I need it (works)

2. Return all values now listed in the 'Profile title' column - so if the collection returns multiple rows i want the profile titles of all rows, ideally concatenated in a 'return' field as shown below. 

 

Capture.JPG

 

I tried something like this, but am missing the syntax to return all profile titles:

 

 

If(
CountRows(CollProfiles1)=1,
Set(VarReturn, LookUp(CollProfiles1,Length = Min(CollProfiles1, Length),'Profile Title')) , Set(VarReturn, [????Return all profile titles in a string????] ) )

 

Any suggestions? 🙂

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Shanescows
Super User
Super User

My Collection name is Employees.

The column I want to return is FirstName.

 

 

Concat(Employees, FirstName)

 

 

Does that do what you want? Sorry, I don't exactly understand the question but I think this is the ballpark?

 

If you need to filter Employees you can. 

 

 

Concat(Filter(Employees, ID = 1), FirstName)

 

Shane - Microsoft MVP, YouTube, and PowerApps Consulting for when you are in a bind to get this fixed quickly. And finally we now have PowerApps Training

View solution in original post

2 REPLIES 2
Shanescows
Super User
Super User

My Collection name is Employees.

The column I want to return is FirstName.

 

 

Concat(Employees, FirstName)

 

 

Does that do what you want? Sorry, I don't exactly understand the question but I think this is the ballpark?

 

If you need to filter Employees you can. 

 

 

Concat(Filter(Employees, ID = 1), FirstName)

 

Shane - Microsoft MVP, YouTube, and PowerApps Consulting for when you are in a bind to get this fixed quickly. And finally we now have PowerApps Training

View solution in original post

Anonymous
Not applicable

Thank you ! 🙂

 

That is what I meant yes. In addition, in case others need this solution, I added ; as a delimiter in this way:

Concat(Employees, FirstName, ";"

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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

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

Top Solution Authors
Top Kudoed Authors
Users online (55,922)