Power BI: HR Analytics - Employees as on Date - userelationship , crossfilter, Hired/Terminated

  Рет қаралды 11,165

Learn Microsoft Fabric, Power BI, SQL Amit Chandak

Learn Microsoft Fabric, Power BI, SQL Amit Chandak

Күн бұрын

Пікірлер: 50
@lyzaevaristo
@lyzaevaristo 3 ай бұрын
Thank you Amit! I have been looking for a solution to the monthly backlog report I am creating and this answers my problem! Great work with the detailed explanations on each measures!
@AmitChandak
@AmitChandak 3 ай бұрын
Thanks, Glad it helped. Hope you will like new version too Power BI HR Active Employee Tenure Bucketing, and Hired, Terminated, and Active employees: kzbin.info/www/bejne/nKfKlKtuhrGkkLc
@obazeeghosa
@obazeeghosa 3 жыл бұрын
Thanks for this very excellent video and the accompanying resources. Greatly appreciated.
@AmitChandak
@AmitChandak 3 жыл бұрын
Glad it was helpful!
@mohanjanakiram8235
@mohanjanakiram8235 2 жыл бұрын
Thank you Amit..!! Quick and precise..!
@AmitChandak
@AmitChandak 2 жыл бұрын
Thanks
@hopefarlow4978
@hopefarlow4978 Жыл бұрын
Thank you Amit! How would you show the current headcount of employees for each month if the employees were in different departments, such as Engineering, HR, Logistics, Supply Chain using a stacked Bar chart?
@AmitChandak
@AmitChandak Жыл бұрын
I think the same measures should work. Unless one employee has more than one department. Please check the file, I added the department www.dropbox.com/scl/fi/y7q6ht9np1yb4cfbzzyj5/HR-With-Dept.pbix?rlkey=2en7z9zs2lxu7wqqsy3rn2q3k&dl=0
@fmsmz
@fmsmz Жыл бұрын
I worked hard to get this video. For two weeks I have been trying to implement the same idea and failed. I will try it and give you the results.
@fmsmz
@fmsmz Жыл бұрын
Its working finally, you are the best ever
@AmitChandak
@AmitChandak Жыл бұрын
Hope you will like the newer version of this Power BI HR Active Employee Tenure Bucketing, and Hired, Terminated, and Active employees: kzbin.info/www/bejne/nKfKlKtuhrGkkLc Hope you will likes these series too Mastering Power BI: kzbin.info/www/bejne/rafWcq2Kprh3jMk Expertise Power BI: kzbin.info/www/bejne/a2qzhnmrqqilmLs Mastering Microsoft Fabric: kzbin.info/www/bejne/pl7ZYXxriJKsmNU
@fmsmz
@fmsmz Жыл бұрын
​@@AmitChandakThank you sir, I will continue to increase my experience through your channel
@hendrag593
@hendrag593 12 күн бұрын
Thank you very much for this great video. GBU.
@AmitChandak
@AmitChandak 12 күн бұрын
Thanks 🙏. Hope you will like the new version too. kzbin.info/www/bejne/nKfKlKtuhrGkkLc
@lijunchen
@lijunchen Жыл бұрын
Bravo! Amit. This video is very helpful. This works well as point-in-time counts of active cases across time in my human service work. I have a question for you. Besides the active employee counts, can you create a measure to show the average and median tenure (from hire date until current period start or end, in days) of the active employees in any period. Also can you also create the average age of employees if we have their birthdates? And a measure like average salarys?
@AmitChandak
@AmitChandak Жыл бұрын
Glad it helped. Please check the another video on channel Power BI HR Active Employee Tenure Bucketing, and Hired, Terminated, and Active employees: kzbin.info/www/bejne/nKfKlKtuhrGkkLc Also check out Complete Power Bi Video with 100+ Topics: kzbin.info/www/bejne/mX-bcoJplNugors Mastering Power BI Series: kzbin.info/www/bejne/rafWcq2Kprh3jMk Expertise Power BI Series: kzbin.info/www/bejne/a2qzhnmrqqilmLs
@lijunchen
@lijunchen Жыл бұрын
@@AmitChandak Very helpful. Thanks a lot.
@markdixon333
@markdixon333 2 жыл бұрын
Really helpful Amit - straightforward explanations and easy to replicate, thank you for your help!
@AmitChandak
@AmitChandak 2 жыл бұрын
You are most welcome. Related blog - community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970 File link www.dropbox.com/s/excoqikgpyz5zvk/Current_employee.pbix?dl=0 Without using active join - www.dropbox.com/s/ixftnm99hg3wmu8/Current_employee_without%20Join.pbix?dl=0
@mudrasasidhar
@mudrasasidhar Жыл бұрын
Fantastic !!!! Thank You!!!
@AmitChandak
@AmitChandak Жыл бұрын
Glad you liked it! Thanks 🙏 Hope you will also like Power BI HR Active Employee Tenure Bucketing, and Hired, Terminated, and Active employees: kzbin.info/www/bejne/nKfKlKtuhrGkkLc
@SSeerrooyy
@SSeerrooyy Жыл бұрын
excellent video! was looking for something like this for ages. trying now to implement it. I'm using the same method to calculate how many projects were active on each day. each project has start date and end date. several questions: do the relations from both end date and start date in the project table to the date field in the calendar should be inactive? if yes, this is impacting other visuals in my report. any workaround? second question - seems I can't use any other slicers on the report page (i have slicers for project region for example). I was hoping i could use this to show a number of concurrent projects for each region.
@AmitChandak
@AmitChandak Жыл бұрын
Thanks. If you want to keep both dates inactive, please find the file link. Let me know if you need more information. You should be able to use other slicer joined with this table www.dropbox.com/s/ixftnm99hg3wmu8/Current_employee_without%20Join.pbix?dl=0
@nhbkj166
@nhbkj166 4 ай бұрын
Is it possible to swap the rows and columns of this table in Power BI? I wanted to arrange the measures horizontally and the months vertically because there are many measures, but due to the specifications of Power BI, I couldn't place the measures in the rows. Does my approach go against some fundamental concept in Power BI?
@AmitChandak
@AmitChandak 4 ай бұрын
You can so that in matrix visual, Switch values to rows previously know as show values on rows
@Datanox
@Datanox 3 жыл бұрын
Hi Amit, Thanks for sharing the knowledge. However, I have a question as to how to calculate hire & terminations for any period based on all position history of staff. The last start date & end date acting as his recent position. Also, if he's continuing employee, the end date would be blank.
@AmitChandak
@AmitChandak 3 жыл бұрын
Do you have more than one entry for an employee. Can share sample for source and output
@Datanox
@Datanox 3 жыл бұрын
@@AmitChandak Yes. More than one entry for employee representing historical agreement dates. The input table represents like this community.powerbi.com/t5/Desktop/Hiring-termination-Active-Headcount-based-on-historical-data/m-p/1889239#M725262
@jacques8290
@jacques8290 Жыл бұрын
@@Datanox did you work this out? I am having the same issue
@sridrigger
@sridrigger 2 жыл бұрын
This helped me a lot.. Thanks :) Any idea how to get cumulative exits for the same as above with exit and join dates
@AmitChandak
@AmitChandak 2 жыл бұрын
You already have Hired and Terminated employee. refer if needed community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970 Then you can have measure like Cumm Hired = CALCULATE([Hired Employee],filter(all('Date'),'Date'[date]
@AmitChandak
@AmitChandak 2 жыл бұрын
@@sridrigger Opening Headcount= CALCULATE(COUNTx(FILTER(f_Employees,f_Employees[EmpJoinDate]< Min(d_DateTable[Date]) && (ISBLANK(f_Employees[EmpLeavDate]) || f_Employees[EmpLeavDate]>=Min('d_DateTable'[Date]))), (f_Employees[EmplCode])),CROSSFILTER(f_Employees[EmpJoinDate],'d_DateTable'[Date],None)) Closing Headcount= CALCULATE(COUNTx(FILTER(f_Employees,f_Employees[EmpJoinDate]max('d_DateTable'[Date]))), (f_Employees[EmplCode])),CROSSFILTER(f_Employees[EmpJoinDate],'d_DateTable'[Date],None))
@sridrigger
@sridrigger 2 жыл бұрын
@@AmitChandak Sincere thanks Worked like a charm :) Was hung up with some miscalculations by 3 days
@sridrigger
@sridrigger 2 жыл бұрын
Sorry For the trouble Amith one Last help I have calculated the Annual Attrition by divide( exitcount, avg headcount) but i need the same as below Attrition * (12which is year count/Month number) which if its april 1, may 2 and so on based on fiscal calendar how can this be achieved Annualized Attrition
@sridrigger
@sridrigger 2 жыл бұрын
@@AmitChandak Any Help on Annual Attrition Calculation?
@aarondnice9018
@aarondnice9018 Жыл бұрын
Thanks for the great and easily explained video Amit. Just had one question, When I am replicating "Last Period Employee" measure, it is excluding count of employees who joined on that particular month. Where should I alter the dax to fix this? Thanks again!
@AmitChandak
@AmitChandak Жыл бұрын
Have you used formula in my file ? Last Period Employee = var _min_date = minx(all('Date'),'Date'[Date]) var _Expression=if(ISFILTERED('Date'[Month Year]),maxx('Date',ENDOFMONTH(DATEADD('Date'[Date],-1,MONTH))),maxx('Date',DATEADD('Date'[Date],-1,YEAR))) Return CALCULATE(COUNTx(FILTER(Employee,Employee[Start Date]=_min_date && (ISBLANK(Employee[End Date]) || Employee[End Date]>_Expression)),(Employee[Employee Id ])),CROSSFILTER(Employee[Start Date],'Date'[Date],None)) To me the number seem fine. If not please share a sample file My file link: www.dropbox.com/s/excoqikgpyz5zvk/Current_employee.pbix?dl=0
@hiteshdangodra6440
@hiteshdangodra6440 Жыл бұрын
Dear Amit, Thank you so much for this vedio. One help required desperately how to find current active employees growth from last date of previous year , your help make lots of love ❤
@AmitChandak
@AmitChandak Жыл бұрын
Please try this measure Last Year Employee = var _min_date = minx(all('Date'),'Date'[Date]) var _Expression=maxx('Date',DATEADD('Date'[Date],-1,YEAR)) Return CALCULATE(COUNTx(FILTER(Employee,Employee[Start Date]=_min_date && (ISBLANK(Employee[End Date]) || Employee[End Date]>_Expression)),(Employee[Employee Id ])),CROSSFILTER(Employee[Start Date],'Date'[Date],None)) You can also refer Last Period Employee in the file www.dropbox.com/s/excoqikgpyz5zvk/Current_employee.pbix?dl=0
@christianmancini2017
@christianmancini2017 3 жыл бұрын
Hi Amit, Thanks for the help, this was simple a really helpfull. It works excellent! I have a question, when I click on the table and in "Terminations", it shows me the hiring names, not the terminated ones, is there a way to solve it? Another question, is there a way to calculate the attrition rate or turnover using this numbers? Thanks a lot again!
@AmitChandak
@AmitChandak 3 жыл бұрын
Are using drill through? the Terminations measure is possible because userelationship and not because of the join, we need make sure the table where we are looking for Termination's name is having Terminations as measure too
@yousifteedonmoye619
@yousifteedonmoye619 2 жыл бұрын
Great video, please how do I add the “||“ or operator in power bi? What do I need to press on the keyboard to make it appear Coz tried everything it's not working at my computer
@AmitChandak
@AmitChandak 2 жыл бұрын
Press pipe sign twice on keyboard. You have or function too
@GanessenSaayman
@GanessenSaayman Жыл бұрын
Hi, how do i include a measure that looks at All Employees per month. i.e Terms + Hires + Current employees
@AmitChandak
@AmitChandak Жыл бұрын
Current employee should consider all active including hire and terminations. Can you please elaborate. We can discuss more on LinkedIn - www.linkedin.com/in/amitchandak78/ Refer if this can help Power BI HR Active Employee Tenure Bucketing, and Hired, Terminated, and Active employees: kzbin.info/www/bejne/nKfKlKtuhrGkkLc
@JimBuckleyBarrett
@JimBuckleyBarrett 9 ай бұрын
Thank you! That worked!
@AmitChandak
@AmitChandak 9 ай бұрын
Glad it helped! Thanks. Hope you will like the next one too: Power BI HR Active Employee Tenure Bucketing, and Hired, Terminated, and Active employees: kzbin.info/www/bejne/nKfKlKtuhrGkkLc
@nikhilnikk5569
@nikhilnikk5569 2 жыл бұрын
Easy to understand Thanks sir
@AmitChandak
@AmitChandak 2 жыл бұрын
Thanks and welcome
How to calculate EMPLOYEE RETENTION with DAX
24:03
Sweatpants BI
Рет қаралды 7 М.
How to Handle 'Many to Many' Relationships Between Facts in Power BI | Power BI Data Modeling| Q61
9:00
Learn Microsoft Fabric, Power BI, SQL Amit Chandak
Рет қаралды 551
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
Total Number Of Staff Over Time - Power BI Insights
9:20
Enterprise DNA
Рет қаралды 38 М.
Create a Date Picker in Power BI (Simple Trick) - Part 1
7:57
Power BI with Rosh
Рет қаралды 27 М.
Calculate OPEN CASES over time in Power BI | Part 1
7:42
How to Power BI
Рет қаралды 26 М.
Calculating Staff Turnover In Power BI Using DAX - HR Insights
6:19
Enterprise DNA
Рет қаралды 42 М.
Power BI Interview Question 65: Date Slicer Tips: Set Slicer to Today or Current Month
6:55
Learn Microsoft Fabric, Power BI, SQL Amit Chandak
Рет қаралды 834