calculate hirings and departures per month

  • calculate hirings and departures per month

    Posted by karim-mohsni on March 2, 2020 at 3:53 am
    • Karim Mohsni

      Member

      March 2, 2020 at 3:53 AM

      Hi All
      can someone please help me ? I have a "pa2020900" pay table. which includes details by employee and by month. I want to have a column that has in front each ID if he is hired this month or is going to leave next month. i tried many functions : CALCULATE; PREVIOUSMONTH; DISTINCTCOUNT but there's no results :( Thank you

      ——————————
      Karim Mohsni
      Auditor
      ——————————

    • Shungu Dhlamini

      Member

      March 2, 2020 at 4:11 AM

      Hi @Karim Mohsni, how do you know (or how can you tell) if the employee is a new hire (was hired this month). Is it by using the date column. Also how can you predict the employee will leave. These conditions will assist in coming up with the measure.

      ——————————
      Shungu Dhlamini
      BI Analyst
      shungud@gmail.com
      ——————————
      ——————————————-

    • Karim Mohsni

      Member

      March 2, 2020 at 5:01 AM

      Hi Shungu Dhlamini

      - A new hire = the ID exists in this month and does not exist in the previous month
      - Departure is an ID that exists in this month and does not exist next month.
      cordially

      ——————————
      Karim Mohsni
      Auditor
      ——————————
      ——————————————-

    • Shungu Dhlamini

      Member

      March 2, 2020 at 5:42 AM

      , kindly attach your pbix file here with dummy data, if your data is sensitive, then we can take it from there. 🙂 ??

      ——————————
      Shungu Dhlamini
      BI Analyst
      shungud@gmail.com
      ——————————
      ——————————————-

    • Karim Mohsni

      Member

      March 2, 2020 at 6:01 AM

      Please find the attached file

      ——————————
      Karim Mohsni
      Auditor
      ——————————
      ——————————————-

    • Shungu Dhlamini

      Member

      March 2, 2020 at 8:02 AM

      Hi please see attached which will hopefully point you in the right direction. I used two measures (Departures and New hires) , basically following similar logic. 2 sets of distinct IDs per dynamic month range and used the EXCEPT function to exclude ?rows which may be appearing in one table and not the other.

      The result 

      ——————————
      Shungu Dhlamini
      BI Analyst
      shungud@gmail.com
      ——————————
      ——————————————-

    • Karim Mohsni

      Member

      March 2, 2020 at 8:40 AM

      Thank you for your precious help.
      it’s Ok 🙂

      ——————————
      Karim Mohsni
      Auditor
      ——————————
      ——————————————-

    karim-mohsni replied 4 years, 2 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘calculate hirings and departures per month’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for people  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!