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 / Filter Sharepoint List...
Power Apps
Answered

Filter Sharepoint List by Comma Delimited values (job numbers) from a column in another table

(0) ShareShare
ReportReport
Posted on by 37

Hello, Power Apps gurus! 

 

I have been struggling to get this one sorted out. I have a SP List with users assigned to distinct job numbers. My requirement is to Filter that SP List by a dynamic set of job numbers  stored in another table.  To retrieve all users assigned to the current job selected. All column types are Text. 

 

SP List

LeeEPMTS_2-1693345219119.png

Dynamic Table

LeeEPMTS_1-1693345159470.png

I have been trying Concat with Split, DropColumns and AddColumn but keep getting stuck with the Filter statement wanting a single text string (as opposed to a table of values)... 

 

I'm sure this is a simple task, I just haven't been able to break it down.

 

Thanks in advance for any/all help!! 

 

Categories:
I have the same question (0)
  • SpongYe Profile Picture
    5,909 Super User 2026 Season 1 on at

    Hi @LeeEPMTS 

     

    Have you try using the function First.

    Spoiler (Highlight to read)

    The First function returns the first record of a table.

    The First function returns the first record of a table.

     

    First(Filter(tblUserJobAssignments, <filterField> = JobNumber)).JobNumber

     

     


    ------------------------------------------------------------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

  • LeeEPMTS Profile Picture
    37 on at

    Hi @SpongYe 

     

    Unfortunately, the table being created needs to have all matching records (Job Numbers) (not just the First record) so First won't do the trick here... 

     

    Thank you though!

  • SpongYe Profile Picture
    5,909 Super User 2026 Season 1 on at

    Hi @LeeEPMTS 

     

    Something like this:

     

    Filter(
     tblUserJobAssignments,
     Not(
     JobNumber in <SharepointList>.JobNumber
     )
    ).JobNumber

      


    ------------------------------------------------------------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

  • LeeEPMTS Profile Picture
    37 on at

    @SpongYe 

     

    That solution returned the following:

     

    LeeEPMTS_0-1693347848303.png

     

    I am looking for the Distinct Records associated with the matching Job Numbers in the SP List. 

     

    Thank you for your help! Maybe a For All, to iterate through each job number and add the matching records to varTestTable? 

     

  • SpongYe Profile Picture
    5,909 Super User 2026 Season 1 on at

    Based of what you have it shoud look like:

     

     

    Set(varTestTable, Filter(
     Distinct('User Job Assignments', Jobnumber), 
     Result in tblUserJobAssignments.JobNumber
     ).Result
    )

     


    ------------------------------------------------------------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

     

  • LeeEPMTS Profile Picture
    37 on at

    Hmmm. @SpongYe  that solution throws an error, maybe I am missing something in the syntax

  • SpongYe Profile Picture
    5,909 Super User 2026 Season 1 on at

    Try this one:

     

    Set(varTestTable, Distinct(Filter(
     'User Job Assignments', 
     Jobnumber in tblUserJobAssignments.JobNumber
     ).Jobnumber), Jobnumber).Result
    )
  • LeeEPMTS Profile Picture
    37 on at

    That syntax shows invalid number of arguments, received 1 expected 2 

  • Verified answer
    SpongYe Profile Picture
    5,909 Super User 2026 Season 1 on at

    I created something similair to my first suggestion that works for me:

     

    PowerYsa_0-1693350489264.png

     


    ------------------------------------------------------------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

  • LeeEPMTS Profile Picture
    37 on at

    Thanks, @SpongYe 

     

    I was able to solve this with the following code: 

    Set(tblTestTable, Distinct(Filter('User Job Assignments', JobNumber in varTeststring), 'User Full Name'))

     

    Using another variable (varTestString) that was concatenating the Job Numbers. This gave me the Distinct User Names I was looking for. 

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard