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 Apps
Answered

Date filter

(0) ShareShare
ReportReport
Posted on by 375

Hi, I have a question. I have a gallery that will show only promotions within the month. How do we filter for such situation. Im having trouble with the filter formula.

Categories:
I have the same question (0)
  • Verified answer
    DanishIslam Profile Picture
    108 on at

    Hi NurNina,

     

    Lets say you want to filter the gallery for the items created in current month only, try this formula-

     

    Filter('Data Source', Month(Created) = Month(Today()) && Year(Created) = Year(Today()))

     

    Hope this helps.

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @NurNina ,

    Which data source do you used to store the promotions records? A SP List or a Excel table?

    Do you add a Date type column in your data source to store the Start time of the promotions records?

     

    I assume that you add a Date type column in your data source (may be a SP List) to store the Start time of the promotions records, is it true?

     

    I have made a test on my side, please take a try with the following workaround:

    Set the Items property of the Gallery to following:

    Filter(
     DataSource,
     Month(StartTime) = Month(Today()) && Year(StartTime) = Year(Today())
    )

    Note: The StartTime column represents the date type column in your data source, which used to store the start time of the promotions records.

     

    Please consider take a try with above solution, then check if the issue is solved.

     

    Best regards,

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

#2
11manish Profile Picture

11manish 224

#3
Valantis Profile Picture

Valantis 181

Last 30 days Overall leaderboard