I need to perform min, max and duration functions on some dates after the data is pivoted. Unfortunately, once the pivot occurs, there are non-date data elements in the columns