Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I have an application that refreshes everyday and shows the data as of previous day. For example, today it will show me the visualizations as of yesterday and so on.
I woule like to calculate the total number of people who are leaving / Total number of people hired as the following groups :
0-30 days of service
31-60 days of service
61 - 90 days of service.
How to calculate this and do the grouping? I have the hire date and termination date of the employee.
Thank You!
Solved! Go to Solution.
Try the solutions in the link.
https://community.powerbi.com/t5/Desktop/Creating-groups-based-on-numbers/m-p/513856
Ther's one using M and the other using DAX.
Note that you should have Duration column (either in Query or in model).
Hi @Anonymous,
Since there are hire date and termination date columns in table, you can create a calculated column via DATEDIFF to calculate the total days of service for each employee. Then, you can refer to the solutions in above link to group these results.
Regards,
Yuliana Gu
Hi @Anonymous,
Since there are hire date and termination date columns in table, you can create a calculated column via DATEDIFF to calculate the total days of service for each employee. Then, you can refer to the solutions in above link to group these results.
Regards,
Yuliana Gu
Thank You! I created a DATEDIFF Column and created those variations through the SWITCH Statement
Try the solutions in the link.
https://community.powerbi.com/t5/Desktop/Creating-groups-based-on-numbers/m-p/513856
Ther's one using M and the other using DAX.
Note that you should have Duration column (either in Query or in model).
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
135 | |
116 | |
101 | |
71 | |
61 |