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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
alex9999
Helper I
Helper I

Job Analytics - Job On Hire, Job Off Hire, Current On Hire (Historical)

Hi,

 

I have recently found a forum post which relates to the problem I am trying to solve:

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

 

My only issue is that the DAX measures are not working with my dataset. I work in an organisation which holds thousands of rows of data holding details such as "Job On Hire Date" and "Job Off Hire Date". I am trying to make a similar vizualisation to the one at the end of the mentioned forum post, where the "Current Employed Employees" line is replaced with "Current On Hire Jobs", and the "Hired" "Terminated" bars are replaced with "Jobs Hired" "Jobs Offhired".

 

I can see how the logic works, however I am struggling with the development of my own variation of said vizualisation.

 

I can work out if a job is on hire by using simple logic (IF Job On Hire Date = NOTBLANK && Job Off Hire Date = BLANK), I just need to incorporate a historical time slicer to find jobs on hire for certain dates, for example: 

 

There were 874 jobs on hire on 05/01/2022.

 

For a bit of extra support, here is an example dataset which you could use:

 

Job IDJob On Hire DateJob Off Hire Date
A11/02/202214/02/2022
B11/02/2022NULL (Still On Hire)
C12/02/2022NULL (Still On Hire)
D12/02/202213/02/2022
1 ACCEPTED SOLUTION

@alex9999 , Please check the file attached

Small model change, I am keeping both join inactive 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
alex9999
Helper I
Helper I

Hi @amitchandak ,

 

I have just reviewed my initial question and not sure if the dataset is as storytelling as it could be.

 

I would like to find out how many Jobs were "On Hire" on dates ranging between 2015 and 2022. For example:

 

There were 800 Jobs on hire in Oct 2020 etc.

 

Here is an extended dataset if needed:

 

 

Job IDOn Hire DateOff Hire Date
A12/01/201616/02/2018
B15/04/201710/02/2018
C20/12/2018NULL
D30/06/2019NULL
E29/07/2019NULL
F30/08/2019NULL

 

If you were to filter vizualisation to date ranges 20/12/2018 - 14/02/2022 there would be 4 jobs still On Hire.

@alex9999 , Please check the file attached

Small model change, I am keeping both join inactive 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
amitchandak
Super User
Super User

@alex9999 , I sharing a file for this blog, please check how date table is used to display current employees.

 

Can you share the expected results for the data shared by you?

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.