Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago

Working Days on Aging Calculation

Hi,

I am trying to get a net working days for an aging calculation where you have a a filter date (report date).  The calculation works fine when I just do the days but when I add in the business days, I get this weird error.

 

Basically I want at 8/1, to get an accurate calculation for working days and total days for each order created.  

 

I have a Many to one relationship between createddate and the filter date.

 

Can anyone point me in the right direction?

 

 

Thanks
Brendan
Delivery Days Working =
CALCULATE(
    COUNTROWS ( 'Filter Dates' ),
DATESBETWEEN ( 'Filter Dates'[Date],  'Detail INC Aging'[Daterun], 'Detail INC Aging'[CreatedDate] - 1),
    'Filter Dates'[Business Day?]=1,
   
    ALL ( 'Detail INC Aging' ))

2 Replies