web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filter records based o...
Power Apps
Unanswered

Filter records based on part of string

(0) ShareShare
ReportReport
Posted on by 641

Hi,

 

I want to filter records based on parts of the string which needs to compare from another collection. for ex,

 

Collection 1 - Having a field with value in SelectedDepartments like ["Management","Purchase"] ( this is single TEXT column having dquare brackets)

 

Collection 2 - Users having access to the departments

Department

Purchase

 

In collection 2, having a column 'Department' which is a single text field having 'Purchase' as a value in one record. (there can be multiple records on which user is a member of)

 

Now I want to filter records from collection1, where it needs to be show only records on which user member of from collection2.

 

Any help would be appreciated.

 

Thanks,

 

 

Categories:
I have the same question (0)
  • rubin_boer Profile Picture
    4,841 Super User 2024 Season 1 on at

    hi @panand99 

     

    Try 

    Filter(
     colYourSelectedDepartments,
     galYourDepartments.Selected.Department in Department
    )

     

    Where Department is the selected department field where you store your slected departments.

     

    Hope this helps

  • panand99 Profile Picture
    641 on at

    Hello @rubin_boer ,

    Thanks for the response.

     

    But this does not work, as I have couple of records in collection2. whereas you mentioned to use 

    galYourDepartments.Selected.Department

     

     

     

  • panand99 Profile Picture
    641 on at

    Hello @rubin_boer ,

    Thanks for the response.

     

    But this does not work, as I have couple of records in collection2. whereas you mentioned to use 

    galYourDepartments.Selected.Department

  • panand99 Profile Picture
    641 on at

    Hi @WarrenBelz @RandyHayes 

    May I request some help here.

     

    Thanks,

     

  • v-jefferni Profile Picture
    on at

    Hi @panand99 ï¼Œ

     

    Could you please share more details about your scenario? How did you create the collection1? I think it would be better to use actual data as an example to explain.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard