Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Simplifying a code using the "earlier" function

Hello, I would like to filter the departure and arrival times of the cranes. I have a database with the times of the different cranes mixed together and with this code it calculates the intermed...
  • amitchandak's avatar
    4 years ago

    Anonymous , Sorry, Try like

     

    CALCULATE(MIN('Bridge Hall 3 M'[DateHour_Origin]),FILTER('bridge Hall 3 M','bridge Hall 3 M'[Number_bridge]=EARLIER('bridge Hall 3 M'[Number_Pont])
    &&'bridge Hall 3 M'[Date Rank] = EARLIER('bridge Hall 3 M'[Date Rank]) +1 ))-'bridge Hall 3 M'[Datehour_Arrival])