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 a column within...
Power Apps
Answered

Filter a column within a SP List

(0) ShareShare
ReportReport
Posted on by 580

Hi All, 

 

I've been following one of Shane Young's video's on making a calendar in PA

 

Trying to shape it to my needs a little, I want the filter to only fetch results if a certain choice is used within a set column 

 

So as an example, my SP list is called Staff Secondments, the column I want the formula to filter is called 'Seconded Line' and I only want the filter to display any record with 'Training Line' 

 

ClearCollect(
 colsecondevents,
 Filter(
 'Staff Secondments',
 ('Seconded Start' > varseconsfirstdayview And 'Seconded Start' <= varsecondnextmonth) Or ('Secondment Finish' > varseconsfirstdayview And 'Secondment Finish' <= varsecondnextmonth) Or ('Seconded Start' <= varseconsfirstdayview And 'Secondment Finish' > varsecondnextmonth
 )
));

 

 Any Advice?

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    156,308 Most Valuable Professional on at

    Hi @AdamH ,

    Probably something like this will do it

    ClearCollect(
     colsecondevents,
     Filter(
     'Staff Secondments',
     (
     ('Seconded Start' > varseconsfirstdayview And 'Seconded Start' <= varsecondnextmonth) ||
     ('Secondment Finish' > varseconsfirstdayview And 'Secondment Finish' <= varsecondnextmonth) || 
     ('Seconded Start' <= varseconsfirstdayview And 'Secondment Finish' > varsecondnextmonth)
     ) &&
     'Seconded Line" = "Training Line"
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • AdamH Profile Picture
    580 on at

    Hi @WarrenBelz 

     

    Thanks for that - I had to modify your example a little as the data type was choice - So i used 'Seconded Line'.Value = "Training Line"

     

    Thanks again Warren!

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 377 Most Valuable Professional

#2
11manish Profile Picture

11manish 165 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 110 Super User 2026 Season 2

Last 30 days Overall leaderboard