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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.