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 / Problems with Filtering
Power Apps
Unanswered

Problems with Filtering

(0) ShareShare
ReportReport
Posted on by 20

Background: In order to prevent delegation issues, I am populating a Collection via SharePoint List.

Issue: I am trying to further reduce the result set to not show any Completed items that are older than 90 days. Unfortunately,  I cannot get the logic to do both.

I've tried filtering within the gallery as well as my current attempt, filter before generating the collection. If I uncomment //&& Status.Value <> "Completed", not only does it remove any Completed items, it also triggers a delegation warning.

 

ClearCollect(

    colRequestDetails,

    ForAll(

        Filter(

            'Requests',

            Created > DateAdd(Today(), -90, TimeUnit.Days) //&& Status.Value <> "Completed"

        ),

        {

            RequestNum: ThisRecord.ID,
            Requestor: ThisRecord.Requestor,
            RequestFam: ThisRecord.'Request Family',
            RequestType: ThisRecord.'Request Type',
            Status: ThisRecord.Status.Value,
            ShortDesc: ThisRecord.Description,
            Priority: ThisRecord.Priority.Value,
            Comments: ThisRecord.Comments,
            Assignee: ThisRecord.'Assigned To',
            CreatedDate: ThisRecord.Created

        }

    )

)

 

Separating out the condition nets the same result.

Created > DateAdd(Today(), -90, TimeUnit.Days),
Status.Value <> "Completed"
 
Categories:
I have the same question (0)
  • SebS Profile Picture
    4,622 Moderator on at
    Hi,
     
    What other Status You have there except "Completed" and do you plan to extend number of Your Statuses or there will be static forever ??

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 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard