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 / Problem adressing past...
Power Apps
Answered

Problem adressing past days tasks...

(0) ShareShare
ReportReport
Posted on by 5

Hello, 

 

I'm making an app where teams can see the task they have to complete based on a sharepoint list with tasks. If they push the button they see the tasks based on a 'date' column that's compared with the 'isToday()' function. This works fine, showing todays taks. 

 

The problem is with teams that work at night. At 12PM the 'isToday()' function will show the tasks of next day. 

I tried to come up with a solution based on declaring a variable that is set(varTimeDrag ; DateAdd(Now();-8;Hours)) . I would integrate this in the formula instead of 'isToday' but I can't seem to find out how. 

 

This is the current formula to retrieve todays tasks : 

 

Filter(lstOpdrachtenTODO;UitvPloeg.Value=varHuidigePloeg;IsToday(DatumOpdracht))

 

'DatumOpdracht' is a sharepoint column 'date and time' without recording time. 

 

Anyone any idea??

 

Thanks

 

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,774 Most Valuable Professional on at

    Hi @servaesj ,

    I cannot test this, but does the below work for you?

    Filter(
     lstOpdrachtenTODO;
     UitvPloeg.Value=varHuidigePloeg && 
     IsToday( 
     DateAdd(
     DatumOpdracht;
     -8;
     Hours
     )
     )
    )

     

    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 the content was useful in other ways, please consider giving it Thumbs Up.

  • servaesj Profile Picture
    5 on at

    Thank You Warren!

     

    It worked for me!

     

    I just had to delete the minus!

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 337 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 250

#3
Mohsin Ali Profile Picture

Mohsin Ali 225

Last 30 days Overall leaderboard