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 / Powerapps - Collection...
Power Apps
Answered

Powerapps - Collection Filtering

(0) ShareShare
ReportReport
Posted on by 10
Powerapps - a string of values separated by a comma needs to be matched with a column in Collection

Hi, 

 

I have a string like "Test1; Test2; Test3"

I have a collection of records like :

IDName
1Data for Test1 user
2Data for Test4 user
3Data for Test 3 user
4Dummy record data

 

I need to filter my collection only with records whereby String contains in Name. How can this be achieved?

Output expected is :

IDName
1Data for Test1 user
3Data for Test 3 user

 

Thank you in advance

Categories:
  • Verified answer
    v-albai-msft Profile Picture
    Microsoft Employee on at

    Hi @Shan1 ,

    Try this:

    Filter(collection1,ID in Ungroup(ForAll(Split("Test1;Test2;Test3",";"),Filter(collection1, Result in Name)),"Value").ID)

    Note: in your data, there is no space between "Test3" in yoru string, but there is a space between "Test 3" in your collection. So if you type "Test3" in your string, you will not get the record with "Test 3".

    valbaimsft_0-1629442108639.png

     

    Best regards,

    Allen

  • MyCRMBlog Profile Picture
    10 on at

    Thank you, i also tried with Find and it also worked. Thank you so much for the assistance.

  • Hamid1 Profile Picture
    2 on at

    Hamid.akbari63@icloud.com 

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 337 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 250

#3
Mohsin Ali Profile Picture

Mohsin Ali 225

Last 30 days Overall leaderboard