Power Apps Filter Gallery By Dates In Next Quarter

Filter a gallery to show only dates in the next quarter.



Input

Calendar Dates is a SharePoint list with consecutive days starting 1/1/2018 and ending 12/31/2024 (2,557 rows)

TitleCalendarDate
Monday, January 1, 20181/1/2018
Tuesday, January 2, 20181/2/2018
Wednesday, January 3, 20181/3/2018
Thursday, January 4, 20181/4/2018
Friday, January 5, 20181/5/2018
Tuesday, December 31, 202412/31/2024


Code

Use this code in the Items property of a gallery.

With(
    {
        StartDate: Date(
            Year(Today()),
            Month(Today())
            -If(
                Mod(Month(Today())-1,3) = 0,
                0,
                Mod( Month(Today())-1, 3)
            )+3,
            1
        ),
        EndDate: Date(
            Year(Today()),
            Month(Today()) + 3-Mod(Month(Today())-1,3)+3,
            1
        )-1
    },
    Filter(
        'Calendar Dates',
        CalendarDate >= StartDate,
        CalendarDate <= EndDate
    )
)


Output

Gallery shows only rows with a date in the next month. Current date is 6/16/2021.

TitleCalendarDate
Thursday, July 1, 20217/1/2021
Friday, July 2, 20217/2/2021
Saturday, July 3, 20217/3/2021
Sunday, July 4, 20217/4/2021
Monday, July 5, 20217/5/2021
Tuesday, July 6, 20217/6/2021
Wednesday, July 7, 20217/7/2021
Thursday, July 8, 20217/8/2021
Friday, July 9, 20217/9/2021
Saturday, July 10, 20217/10/2021
Sunday, July 11, 20217/11/2021
Monday, July 12, 20217/12/2021
Tuesday, July 13, 20217/13/2021
Wednesday, July 14, 20217/14/2021
Thursday, July 15, 20217/15/2021
Friday, July 16, 20217/16/2021
Saturday, July 17, 20217/17/2021
Sunday, July 18, 20217/18/2021
Monday, July 19, 20217/19/2021
Tuesday, July 20, 20217/20/2021
Wednesday, July 21, 20217/21/2021
Thursday, July 22, 20217/22/2021
Friday, July 23, 20217/23/2021
Saturday, July 24, 20217/24/2021
Sunday, July 25, 20217/25/2021
Monday, July 26, 20217/26/2021
Tuesday, July 27, 20217/27/2021
Wednesday, July 28, 20217/28/2021
Thursday, July 29, 20217/29/2021
Friday, July 30, 20217/30/2021
Saturday, July 31, 20217/31/2021
Sunday, August 1, 20218/1/2021
Monday, August 2, 20218/2/2021
Tuesday, August 3, 20218/3/2021
Wednesday, August 4, 20218/4/2021
Thursday, August 5, 20218/5/2021
Friday, August 6, 20218/6/2021
Saturday, August 7, 20218/7/2021
Sunday, August 8, 20218/8/2021
Monday, August 9, 20218/9/2021
Tuesday, August 10, 20218/10/2021
Wednesday, August 11, 20218/11/2021
Thursday, August 12, 20218/12/2021
Friday, August 13, 20218/13/2021
Saturday, August 14, 20218/14/2021
Sunday, August 15, 20218/15/2021
Monday, August 16, 20218/16/2021
Tuesday, August 17, 20218/17/2021
Wednesday, August 18, 20218/18/2021
Thursday, August 19, 20218/19/2021
Friday, August 20, 20218/20/2021
Saturday, August 21, 20218/21/2021
Sunday, August 22, 20218/22/2021
Monday, August 23, 20218/23/2021
Tuesday, August 24, 20218/24/2021
Wednesday, August 25, 20218/25/2021
Thursday, August 26, 20218/26/2021
Friday, August 27, 20218/27/2021
Saturday, August 28, 20218/28/2021
Sunday, August 29, 20218/29/2021
Monday, August 30, 20218/30/2021
Tuesday, August 31, 20218/31/2021
Wednesday, September 1, 20219/1/2021
Thursday, September 2, 20219/2/2021
Friday, September 3, 20219/3/2021
Saturday, September 4, 20219/4/2021
Sunday, September 5, 20219/5/2021
Monday, September 6, 20219/6/2021
Tuesday, September 7, 20219/7/2021
Wednesday, September 8, 20219/8/2021
Thursday, September 9, 20219/9/2021
Friday, September 10, 20219/10/2021
Saturday, September 11, 20219/11/2021
Sunday, September 12, 20219/12/2021
Monday, September 13, 20219/13/2021
Tuesday, September 14, 20219/14/2021
Wednesday, September 15, 20219/15/2021
Thursday, September 16, 20219/16/2021
Friday, September 17, 20219/17/2021
Saturday, September 18, 20219/18/2021
Sunday, September 19, 20219/19/2021
Monday, September 20, 20219/20/2021
Tuesday, September 21, 20219/21/2021
Wednesday, September 22, 20219/22/2021
Thursday, September 23, 20219/23/2021
Friday, September 24, 20219/24/2021
Saturday, September 25, 20219/25/2021
Sunday, September 26, 20219/26/2021
Monday, September 27, 20219/27/2021
Tuesday, September 28, 20219/28/2021
Wednesday, September 29, 20219/29/2021
Thursday, September 30, 20219/30/2021