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 / Active status of an em...
Power Apps
Answered

Active status of an employee

(0) ShareShare
ReportReport
Posted on by 6

I have a sharepoint list named attendance and when ever some one click on "clockin" in power apps it takes todays date and location and status as "In" and if they click "Clockout" in powerapps it takes "Out" and stores in a record of that list now i want to show the status of employess in the employee directory based on in and out for todays date. but i am not able to get the logic can anybody help me in this 

 

Categories:
I have the same question (0)
  • Verified answer
    Sundeep_Malik Profile Picture
    6,501 on at

    Hey @HARI3 

     

    For the status you can set a formula/expression like the following:

     

     

    If(
    IsEmpty(
    Filter(
    attendance,
    EmployeeName = ThisItem.EmployeeName && Date = Today()
    )
    ),
    "Not Available",
    Lookup(
    attendance,
    EmployeeName = ThisItem.EmployeeName && Date = Today(),
    Status
    )
    )

     

    Here:

    • The Filter function filters the attendance list based on the current employee name ThisItem.EmployeeName and today's date ( Today() ).
    • The IsEmpty function checks if there are any records returned by the filter. If there are no records, it means the employee has no clock-in/out entries for today, so "Not Available" is displayed.
    • The Lookup function retrieves the "Status" value from the filtered record if it exists.

     

    I hope this helps 🙂

  • HARI3 Profile Picture
    6 on at

    Thnaks @Sundeep_Malik 

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard