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 Gallery of Cale...
Power Apps
Answered

Filter Gallery of Calendar List by Month

(0) ShareShare
ReportReport
Posted on by 95

Hi all,

Alois_0-1604934015457.png


Attached is a preview of a gallery filtered and sorted to Status and Pick Up Time respectively. I would like to add another filter to show only current month's items. How do I achieve this? For instance, the first item is in the month of October, but I want only November.

Regards,
Alois

Categories:
I have the same question (0)
  • Verified answer
    CU-18081211-6 Profile Picture
    9,272 Moderator on at

    Hi @Alois ,

     

    Well ... the most convenient method would be to set your Items formula to the following but this approach will give you a delegation warning as the Month function cannot be delegated to sharepoint.

    Sort(

         Filter('Swab Test Calendar_1',

                   Status.Value="Completed" && Month('Pick  Up  Time')=Month(Today())

                  ),

         'Pick Up Time',

          Ascending)

     

     

    So ...let's try another way: 

    OnVisible Property of the Screen define 2 context variables used also to  avoid delegation warning:

    UpdateContext({_firstDayCurrentMonth: Date(Year(Today()),Month(Today()),1)})

    UpdateContext({_firstDayNextMonth: Date(Year(Today()),Month(Today())+1,1)})

     

    and the formula will be like:

    Sort(

         Filter('Swab Test Calendar_1',

                   Status.Value="Completed" &&

                   'Pick  Up  Time'>=_firstDayCurrentMonth &&

                   'Pick Up Time'<_firstDayNextMonth

                  ),

         'Pick Up Time',

          Ascending)

     

    Hope it helps ! 

  • Alois Profile Picture
    95 on at

    Worked like a charm. Thank you for the help. 😁

  • Pstork1 Profile Picture
    69,649 Most Valuable Professional on at

    YOu can Filter on the current month by using the Month() function.  Something like this

    Filter(ExistingSortandFilter,Month(PickUpDate) = Month(Today()))

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

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard