March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello,
I have an applicant workflow and would like to measure how long a candidate has spent in which status (per job and average across all jobs). I have the following table:
Job Req ID | Application ID | Application Status | Application Status Category | Created Date (Timestamp) | Is Current Status | Skipped Status |
300384 | 2388666 | Personal Assessment | ASSESSMENT | 22.05.2023 06:21 | Skipped by user | |
300384 | 2388666 | Cultural fit assessment | ASSESSMENT | 22.05.2023 06:21 | Skipped by user | |
300384 | 2388666 | Manager Review | ASSESSMENT | 22.05.2023 06:21 | Not Skipped | |
300384 | 2388666 | Rejected - Direct Rejected | CLOSEDY | 22.05.2023 09:23 | YES | Not Skipped |
300384 | 2388666 | Screening | SCREENING | 22.05.2023 06:21 | Skipped by user | |
300384 | 2388666 | Default | APPLIED | 19.05.2023 14:34 | Not Skipped | |
300384 | 2388666 | Recruiter Interview | SCREENING | 22.05.2023 06:21 | Skipped by user | |
123456 | 1234567 | Default | APPLIED | 18.05.2023 13:27 | Not Skipped | |
123456 | 1234567 | Recruiter Interview | SCREENING | 20.05.2023 06:21 | Not Skipped | |
123456 | 1234567 | Manager Review | ASSESSMENT | 22.05.2023 06:21 | YES | Not Skipped |
If the status is "Skipped by user", the applicant was not in this status, if it is "not skipped", the applicant was in this status. For the case shown, I would want to know how long the applicant was in the status "Default" and "Manager Review". If "CLOSED", then I do not need any time.
Example fpr average time in status:
I would be very grateful if anyone can help.
Kind regards
Christoph
Solved! Go to Solution.
Hi @checkner ,
It seems that you are trying to create a measure not a calculated column. If you want to apply the formula which provided by @rubayatyasmin , you need to create a calculated column instead of measure.
Best Regards
@checkner sorry I had lost this thread. You can create an Calculated Column as suggested by @v-yiruan-msft .
Thanks
Proud to be a Super User!
Hi @checkner ,
It seems that you are trying to create a measure not a calculated column. If you want to apply the formula which provided by @rubayatyasmin , you need to create a calculated column instead of measure.
Best Regards
Hi, @checkner
Filter out rows where Skipped Status is "Skipped by user" and Application Status is "CLOSEDY" using Power Query Editor.
then use the below DAX to achieve your result
TimeSpent =
IF(
NOT(ISBLANK(
CALCULATE(
MIN(ApplicantStatus[Created Date (Timestamp)]),
FILTER(
ApplicantStatus,
ApplicantStatus[Application ID] = EARLIER(ApplicantStatus[Application ID]) &&
ApplicantStatus[Created Date (Timestamp)] > EARLIER(ApplicantStatus[Created Date (Timestamp)]) &&
ApplicantStatus[Application Status] <> "Skipped by user" &&
ApplicantStatus[Application Status] <> "CLOSEDY"
)
)
)),
(CALCULATE(
MIN(ApplicantStatus[Created Date (Timestamp)]),
FILTER(
ApplicantStatus,
ApplicantStatus[Application ID] = EARLIER(ApplicantStatus[Application ID]) &&
ApplicantStatus[Created Date (Timestamp)] > EARLIER(ApplicantStatus[Created Date (Timestamp)]) &&
ApplicantStatus[Application Status] <> "Skipped by user" &&
ApplicantStatus[Application Status] <> "CLOSEDY"
)
) - EARLIER(ApplicantStatus[Created Date (Timestamp)])) * 24,
BLANK()
)
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
86 | |
76 | |
57 | |
52 |
User | Count |
---|---|
201 | |
137 | |
108 | |
73 | |
68 |