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 —————————— ——————————————-
- 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
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 —————————— ——————————————-
Please note:
This action will also remove this member from your connections and send a report to the site admin.
Please allow a few minutes for this process to complete.
Report
You have already reported this .
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!