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 / Gallery Items: Date Se...
Power Apps
Unanswered

Gallery Items: Date Sequence and Filter

(0) ShareShare
ReportReport
Posted on by 94

Hi all,

I have the following situation :

a first gallery with Items set to : ForAll(Sequence(4),{itemLine:Value})
a nested gallery with items set to : ForAll(
  Sequence(13),
  {weekNumber: (ThisItem.itemLine – 1) * 13 + Value}
)

I want to show projects with end dates occurring in the sequence of the second gallery, but I can’t manage to add the filter function to Sequence in Gallery 2.

Any suggestions?

Thank you in advance

Categories:
  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    hey @zerocool55 

     

    can you please try this:

    ForAll(
     Sequence(13),
     {
     weekNumber: (ThisItem.itemLine – 1) * 13 + Value,
     Projects: Filter(Projects, EndDate >= StartOfWeek(DateAdd(Today(), (ThisItem.itemLine - 1) * 13 + Value - 1, Weeks)) && EndDate < StartOfWeek(DateAdd(Today(), (ThisItem.itemLine - 1) * 13 + Value, Weeks)))
     }
    )

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • zerocool55 Profile Picture
    94 on at

    @mmbr1606 

     

    Please see the attached picture. I'd like to keep the screen as it is with sequence but within the same gallery filter my sharepoint list with project end date falling any week 

     

    Label3_1: Text(
    DateAdd(
    DateValue("01/01/2024"),
    7 * (ThisItem.weekNumber - 1),
    TimeUnit.Days
    ),
    "dd.mmm.yyyy"
    )

     

    Label3: Text(DateAdd(DateValue("01/1/2024"),5*ThisItem.weekNumber,TimeUnit.Days),"dd.mmm.yyyy")

    Label2: "Week "&ThisItem.weekNumber

     

    Annotation 2024-01-30 155258.png

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 239

Last 30 days Overall leaderboard