Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
hi team,
how to calculating leave
I have employee logindetails
| EMPID | LOGIN DATE | TIME | SHIFT |
| EMPS001 | 1/4/2024 | 6.00 am | 1 |
| EMPS002 | 1/4/2024 | 6.00 am | 1 |
| EMPJ003 | 1/4/2024 | 6.00 am | 1 |
| EMP030 | 1/4/2024 | 6.00 am | 1 |
| EMP032 | 1/4/2024 | 6.00 am | 1 |
| EMPS001 | 2/4/2024 | 6.00 am | 1 |
| EMPS002 | 2/4/2024 | 6.00 am | 1 |
| EMP030 | 2/4/2024 | 6.00 am | 1 |
EMPLOYEE
| ID | NAME |
| EMPS001 | KUMAR |
| EMPS002 | RAM |
| EMPJ003 | VENI |
| EMP030 | THAMO |
| EMP032 | VINOTH |
IF the employee don't have login date than consider as leave
(all days are working day)
Solved! Go to Solution.
Hi @rajasekar_o - Please find the attached file.
Hope this helps
Proud to be a Super User! | |
Hi @rajasekar_o -you have to create a calculated table using cross join funcion with Calendar and Employee tables to get a complete list of all employee dates that should have a login.
Proud to be a Super User! | |
Hi @rajasekar_o - I have loaded both tables along with created a new date table calendar as like below and given a relationship between all three as like below
used calculated tables to create a calendar table as below:
Create a cross-join between the Calendar and Employee tables to get a complete list of all employee dates that should have a login.
Create a calculated column the leaves by checking which dates do not have corresponding login entries in above new as leaves
Hope this helps.
Proud to be a Super User! | |
@rajendraongole1 I tried this, but it showed an error. Could you please share the application file?
Hi @rajasekar_o - Can you please upload the file in drive, i will look and update you on the same.
Proud to be a Super User! | |
Hi @rajasekar_o - Please find the attached file.
Hope this helps
Proud to be a Super User! | |
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |