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 / Comparing sp List and ...
Power Apps
Unanswered

Comparing sp List and collection

(0) ShareShare
ReportReport
Posted on by 95

Hi All,

 

We have a sharepoint list and collection, i need to compare the both and need to filter the data. if a particular record exists in sharepoint list with filter condition, i need to exclude those record. i have written the below code which is not working as expected. 

 

Can someone help me on the below code.

 

ForAll(colEmails,
Collect(Collection1,Filter(MainCollection,Email in Collection1233.MailID &&

Not(Text(StartDateTime,"[$-en-US]m/dd/yyyy") in SPLIST.MStartDate) &&

Not(Text(StartDateTime,"[$-en-US]h:mm AM/PM") in SPLIST.StartTime)))
);

 

- If i add NOT condition it was not working. I have tried with '<>' and '!' instead of NOT but no luck.

Categories:
  • Vijay Tailor Profile Picture
    2,961 on at

    Hi @BKGOUD 

    You can use like below code, Hope it will work for you.

    ForAll(colEmails,
    Collect(Collection1,Filter(MainCollection,Email in Collection1233.MailID &&
    
    Not(DateValue(Text(StartDateTime,"[$-en-US]m/dd/yyyy")) in SPLIST.MStartDate) &&
    
    Not(Text(StartDateTime,"[$-en-US]h:mm AM/PM") in SPLIST.StartTime)))
    );

    Thanks

  • BKGOUD Profile Picture
    95 on at

    Hi @VijayTailor ,

     

    Thanks for helping me. In my code the first condition returns true and others conditions are false. Will it filter the data else how it works.

  • Vijay Tailor Profile Picture
    2,961 on at
    Hi , if possible plz provide the more details regarding your Issue.

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 360 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard