Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

DAX - month-based bar chart for data with date range

Hi Experts,

 

I want to plot the count of the number "working days"(like networkdays) of leaves taken by employee per month.

But the data is in date-range, can you please guide me on how can i calculate the number of days in each date range with in a month.

 

Sample data and expected result is attached.

 

Reagrds

DIvya Joy

 

ID NumberFull NameLeave Type DescripionLeave Start DateLeave End DateDate PaidJan-18Feb-18Mar-18Apr-18May-18Jun-18Jul-18Aug-18Sep-18Oct-18Nov-18Dec-18Jan-19Feb-19Mar-19Apr-19May-19Jun-19Jul-19
1234DavidSick7/09/201814/09/20183/10/20180000000070000000000
1234DavidSick27/09/201827/09/201817/10/20180000000010000000000
1234DavidAnnual5/11/20185/11/201814/11/2018                   
1234DavidSick7/11/20187/11/201828/11/2018                   
1234DavidSick9/11/20189/11/201828/11/2018                   
1234DavidAnnual27/12/20189/01/20199/01/2019                   
1234DavidAnnual10/01/201910/01/201923/01/2019                   
1234DavidAnnual11/01/201914/01/201923/01/2019                   
1234DavidSick29/01/201929/01/20196/02/2019                   

5 Replies