Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

How to calculate difference between two date/time in seconds excluding weekends and holidays .

Hi All,   I need to calculate difference between this Created_date and Credit_hold_date columns in seconds by excluding weekends and holidays.  Any help would be appreciated .    sample d...
  • Anonymous's avatar
    Anonymous
    7 years ago

    It worked by changing some code.

     
    App_hold_holidays =
    COUNTROWS (
    FILTER (
    'Federal Holiday',
    AND (
    'Federal Holiday'[Date] >= MApproved_hold_ReleasedManually[Approved_date_time],
    'Federal Holiday'[Date] <= MApproved_hold_ReleasedManually[Credit_hold_date_time]
    )
    )
    )
     
    Thanks.