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 / Calculated time betwee...
Power Apps
Answered

Calculated time between two columns in sharepoint list.

(0) ShareShare
ReportReport
Posted on by 599

Hi,

This is my SharePoint list,

NameDateLoginLogout
Dani18/05/202118/05/2021 10.30 AM18/05/2021 12.30 AM

 

Now i want to calculate a time between Login and Logout column and If it is not completed 5 hours need to display warning message "You are not completed 5 hours"

 

am using sum formula ,
Set(cal ,Sum(Last(List).Login ,Last(List).Logout));

But it couldn't work .

How to do this?

 

Thanks,

Dhinesh

Categories:
  • Verified answer
    rizkyaditya Profile Picture
    292 on at

    Hello @Dhinesh28R ,

     

    How do you want to show the warning message?
    For now i assume you click on a button, maybe the logout button.

     

    You can try to use this for the OnSelect property : 

    If(DateDiff(Login, Logout, Hours) < 5,
    Notify("You are not completed 5 hours", NotificationType.Warning))

     

  • Dhinesh28R Profile Picture
    599 on at

    Hi @rizkyaditya ,

    Working good man.

     

    Thanks,

    Dhinesh

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 318

#3
Mohsin Ali Profile Picture

Mohsin Ali 220

Last 30 days Overall leaderboard