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
Unanswered

Filter Function

(0) ShareShare
ReportReport
Posted on by 153
@And(greaterOrEquals(item()?['EventDate'], addDays(utcNow(), -329)),lessOrEquals(item()?['EventDate'], addDays(utcNow(), -300)))

 

How can I turn this into a Function to filter by in my get items?

 

 

Categories:
I have the same question (0)
  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @3cdoug ,
    Try placing below formula in Items property of Gallery control - 

    Filter(SPListName, EventDate >= DateAdd(Today(),-329,TimeUnit.Days) && EventDate <= DateAdd(Today(),-300,TimeUnit.Days))
  • 3cdoug Profile Picture
    153 on at

    3cdoug_0-1683299557968.png

    I will try that, but I meant more so in the filter query. As part of the addDays function so that my filter query for my get items

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @3cdoug ,
    I thought that you have to use this formula in Power Apps.
    Try using below in Power Automate - 

    (DateCompleted ge addDays(utcNow(), -329)) and (DateCompleted le addDays(utcNow(), -300))

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard