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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.