Hi,
I need some help to calculate correctly number of sick leave days in each month.
The problem is following, the current PowerPivot based reporting calculates number of sick leave days for a month when sick leave was given even if the sick leave continues to next month.
i.e. if 10 days sick leave is given on 31st of December all 10 days are calculated to December based on the day when sick leave was given.
This should be fixed so that 1 day is calculated to December and 9 days are calculated to January.
In the PowerPivot table where all the events are saved there are columns "SickLeaveDate" which contains the date when sick leave was given, "SickLeaveEndDate" which contains the date when sick leave ends and "SickLeaveDuration" which contains number of sick leave days. In the this example e.g. "SickLeaveDate"=12/31/2015, "SickLeaveEndDate"=01/09/2016 and "SickLeaveDuration"=10.
Can anyone help with the correct DAX formula to fix this problem?
I need some help to calculate correctly number of sick leave days in each month.
The problem is following, the current PowerPivot based reporting calculates number of sick leave days for a month when sick leave was given even if the sick leave continues to next month.
i.e. if 10 days sick leave is given on 31st of December all 10 days are calculated to December based on the day when sick leave was given.
This should be fixed so that 1 day is calculated to December and 9 days are calculated to January.
In the PowerPivot table where all the events are saved there are columns "SickLeaveDate" which contains the date when sick leave was given, "SickLeaveEndDate" which contains the date when sick leave ends and "SickLeaveDuration" which contains number of sick leave days. In the this example e.g. "SickLeaveDate"=12/31/2015, "SickLeaveEndDate"=01/09/2016 and "SickLeaveDuration"=10.
Can anyone help with the correct DAX formula to fix this problem?