Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
yajiviki
Regular Visitor

Find the Employee status

Hi Everyone!,

This is Vijay and a newbie to this forum.

I have an employee processing table in which fields have [Start Time] and [End Time] of jobs.

I need to know whether the employee working on the job or Idle (or) not. I have tried to write the Dax but it getting the wrong answer to me.

Could anyone please help me?

 

Active Status = Employee started the job and the End Time must be null

IDle status = Employee completed the job but not yet started the job

SingOut = total working hours [ Max(End Time)-MIN(Start Time) ]  is greater than 480 mins

LoginOn : MIN(Start Time)

LastActive : Max(End Time)

 

Designer Status = 
var stat = if(MAX(FACT_Processing[End Time])=BLANK(),"ACTIVE",IF(MAX(FACT_Processing[End Time])<>BLANK() && DATEDIFF(NOW(),MAX(FACT_Processing[End Time]),MINUTE)<480 ,"IDLE","SIGN-OUT"))
RETURN stat

 

yajiviki_0-1629549966825.png

 

2 REPLIES 2
daxer-almighty
Solution Sage
Solution Sage

"IDle status = Employee completed the job but not yet started the job"

 

How can somebody have completed the job without starting it?

Hi daxer,

Thank you for your prompt response.

Sorry for that mistakenly I wrote that and  actual text was

"IDle status = Employee completed the job but not yet started the next job in his queue"

Basically, this is the image editing job and all the files were added in the Designer Queue.

Designers start the job one by one.

I hope this information fulfil your request,

 

-yajiv

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.