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 / Combining Datediff, wi...
Power Apps
Answered

Combining Datediff, with last and filter

(0) ShareShare
ReportReport
Posted on by 35

Hello guys,

 

How can I combine DateDiff with last and filter?

 

I've come up with this, 

DateDiff(Last(Filter('Game Scores','Score Date'>=Today()-90),Today(),TimeUnit.Days))

 

'Game Scores' is my SP list,

 

I'm looking to calculate the difference in days, of the last filtered score date and today.

 

Appreciate your help.

Categories:
  • Verified answer
    SpongYe Profile Picture
    5,909 Super User 2026 Season 2 on at

    Hi @Jake_Daniels_9 

     

    Try this:

    DateDiff(
     Last(
     Filter(
     'Game Scores', 
     'Score Date' >= Today()-90
     )
     ).'Score Date', 
     Today(), 
     TimeUnit.Days
    )

     

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

  • Jake_Daniels_9 Profile Picture
    35 on at

    Thank you @SpongYe, it worked like a bomb. Appreciate it! 

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 194 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 150

Last 30 days Overall leaderboard