Skip to main content
Feb 27, 2023 5:15 PM UTC
Question

any function used in pql to calculate days between the two date column such as in excel networkdays does (consider start date and end date , exclude weekends, ignore timestamps)

any function used in pql to calculate days between the two date column such as in excel networkdays does (consider start date and end date , exclude weekends, ignore timestamps)

2 replies

Feb 27, 2023 8:06 PM UTC

Try Remap_TIMSTAMPS, datediff, days_between

 

 

 

Feb 28, 2023 7:38 AM UTC

The WORKDAYS_BETWEEN function determines the amount of workdays between two given dates. It should work similar to the networkdays function in excel.

 

syntax - WORKDAYS_BETWEEN ( start_date, end_date, calendar_specification [, calendar_id_column])

 

The WORKDAYS_BETWEEN function retrieves its information regarding valid workdays from the passed Calendar configuration. For more information on this, see the following link

 

https://docs.celonis.com/en/workday_calendar.html