Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Human Resource Sample PBIX

Good Monring All 

 

I am just taking a look at the 'Human Resource Sample PBIX' available online. 

Can anyone shed anylight on what the Date column is? this may be a silly question

 

https://docs.microsoft.com/en-us/power-bi/create-reports/sample-human-resources

 

Snip below. 

 

  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi Anonymous ,

    The calculated column [isNewHire] mentioned in your snipshot is used to determine whether the current employee is new hired, where the [Date] field is the date of each day (record date), and if the year and month of the HireDate are the same as the record date, then the employee is determined to be a new hire. If an employee leaves on 2021/8/30, the employee's information will only be recorded in the Employee table before 2021/8/30. Therefore, when calculating whether an employee is a new hire, it does not take into account whether the date of departure is empty or less than the record date...

    Best Regards

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous .

    Do you want to know among 'date' and 'HireDate' which you should use as Date?

     

    If so, then the 'date' column is your Date.

     

    If this post helps, then please mark it as 'Accept as Solution'

     

    Regards,

    Sanket Bhagwat

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hello Anonymous 

       

      what formula would i use to create the coulmn, as its hidden in data kitchen

       

      seems to be the 1of the month for the people who have left. che

      However staff with no end date.. what date formala do you think is used?

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi Anonymous ,

        The calculated column [isNewHire] mentioned in your snipshot is used to determine whether the current employee is new hired, where the [Date] field is the date of each day (record date), and if the year and month of the HireDate are the same as the record date, then the employee is determined to be a new hire. If an employee leaves on 2021/8/30, the employee's information will only be recorded in the Employee table before 2021/8/30. Therefore, when calculating whether an employee is a new hire, it does not take into account whether the date of departure is empty or less than the record date...

        Best Regards