Announcements
I'm trying to set a slider so that I can use that to filter by created date in my data. How can I set a variable to earliest date and latest date in my created date column?
Assuming you have a SharePoint List, you can use formula as below:
Min: First(Sort('YourSharePointList',Created,SortOrder.Ascending)).Created Max: First(Sort('YourSharePointList',Created,SortOrder.Descending)).Created
I didn't suggest to use Min() function because it is not delegable in SharePoint.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If this post or my previous reply was useful in other ways, please consider giving it Thumbs Up.
@happyume Thanks for your help! I was trying to do a datediff between the two variables, but running into an error - would you happen to know why (I put the datediff in the Max), see screen shot, any help is appreciated.
Earliest_CreatedDate and Latest_CreatedDate_1 are Controls and not a Date. You need to obtain value of the Control and then convert into Date.
Try:
DateValue(Earliest_CreatedDate.Text)
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 400 Most Valuable Professional
11manish 141 Super User 2026 Season 2
MS.Ragavendar 109 Super User 2026 Season 2