Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Count the number of leave days between start and end date for each month and leave type

Hi everyone,

 

I have employee leave data and want to make a visual or table that shows the number of days for each leave type monthly.

 

This is an exmple of the data:

 

IDAbsence TypeStart DateEnd Date
1440Unpaid Leave2019-01-222019-02-05
11043Unpaid Leave2019-01-232019-01-24
1387Unpaid Leave2019-01-242019-03-02
9312Annual Leave2019-02-232019-02-24
3076Sick Leave2019-04-262019-05-26
1737Annual Leave2019-08-242019-08-31

 

and the result would be something like this:

 

YearMonthUnpaid LeaveAnnual LeaveSick Leave
2019Jan17  
2019Feb331 
2019Mar2  
2019Apr  4
2019May  26
2019Jun   
2019Jul   
2019Aug 6 

 

If the month doesn't have data it can shown or not, not neccessery.

 

Thank you.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User
1 REPLY 1
amitchandak
Super User
Super User

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.