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 / Date filter, searching...
Power Apps
Answered

Date filter, searching help !

(0) ShareShare
ReportReport
Posted on by

I have an inventory Sharepoint list, I want to make a filter with combobox for exemple to display uniquely, items which are in stock since : 6month, 1 Year, 2Y, 3Y, 4Y, ect ect 

I have a column with de date on entry in stock 'StorageDate' , how can I compare this with the now() function to make the filter action ? 

Thanks in advance for your help

Categories:
I have the same question (0)
  • Verified answer
    v-mingkz-msft Profile Picture
    Microsoft Employee on at

    Hi @ProtoSup,

    Do you want to Filter the items in SharePoint list that the difference between StorageDate and now() is less than the value selected in dropdown?

    Can you accept using a unified unit (year) in dropdown (replace 6 months with 0.5 year)?

    You can try the following formula.

    vmingkzmsft_0-1691392675518.png

     

    Filter('List Test',DateDiff(Date,Now(),TimeUnit.Months)<=Dropdown3.Selected.Value*12)

     

     

    Best Regards,

    Kyrie

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

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard