Today I was in a situation to calculate time difference between two time fields in Tableau. But Tableau doesn't offers us with any Time Functions . I was able to solve the use case by writing a lengthy Calculated field .
Here is the Logic I Implemented , I Calculated the time difference between both the time stamps in seconds. Later I converted the seconds in to hh:mm:ss format.
The Calculation Logic I used to Calculated time in seconds is
The Calculation Logic I used to Calculated time in seconds
The workbook can be downloaded from here
Here is the Logic I Implemented , I Calculated the time difference between both the time stamps in seconds. Later I converted the seconds in to hh:mm:ss format.
The Calculation Logic I used to Calculated time in seconds is
( DATEPART('hour',DATEtime([End time ]))* 3600+DATEPART('minute',DATEtime([End time ]))*60 +DATEPART('second',DATEtime([End time ])) ) - ( DATEPART('hour',DATEtime([Start time]))* 3600+DATEPART('minute',DATEtime([Start time]))*60 +DATEPART('second',DATEtime([Start time])))
(str(([total time in seconds]- (([total time in seconds]-([total time in seconds]%60))%3600)-([total time in seconds]%60))/3600)+ ":" + str((([total time in seconds]-([total time in seconds]%60))%3600)/60)) + ":" + str([total time in seconds]%60)
nft nasıl alınır
ReplyDeleteen son çıkan perde modelleri
yurtdışı kargo
minecraft premium
uc satın al
lisans satın al
en son çıkan perde modelleri
özel ambulans