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 / creating collections f...
Power Apps
Unanswered

creating collections for each items in a gallery

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

MuhammedNirjas_0-1660129988914.png

here in gallery i get an item with two date range, i want to take all dates between this two date range and check if this dates exist in another collection or not.if all dates within this two date ranges are there in the collection then i can mark this file as success.

i am able to do it using two collections and two button click

i want to do it for each item in gallery without any action from user

is there any way to do it

Categories:
  • BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    Hi @Anonymous ,

     

    Do you have any other use for the collections than checking if there's any overlap?

     

    Otherwise it may be easier to use the following condition:

     

     

     

    StartDateRange1 < StartDateRange2 && EndDateRange1 < StartDateRange2 && StartDateRange1 > EndDateRange2 && EndDateRange1 > EndDateRange2

     

     

     

    Basically it checks if both the startdate and enddate of range 1 are before the startdate of range 2 and after the enddate of range 2. If any of this returns a false, it means there is an overlap between the ranges.

  • BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    A simplified version is:

    StartDateRange1 > EndDateRange2 || EndDateRange1<StartDateRange2

     

    This checks if range1 starts after range2 end or range1 ends before range2 starts.   

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 225

#3
M Bilal Khan Profile Picture

M Bilal Khan 192

Last 30 days Overall leaderboard