This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
I have tried to implement below status in Alteryx but it is not allowed to perform the action. Can somebody provide me the solution.
SQL - convert(varchar(5),DateDiff(s, [RobotStartProcessingTime], [RobotEndprocessingTime])/3600)+':'+convert (varchar(5),DateDiff(s, [RobotStartProcessingTime], [RobotEndprocessingTime])%3600/60)+':'+convert(varchar (5),(DateDiff(s, [RobotStartProcessingTime], [RobotEndprocessingTime])%60)) as Robot_Processing_Time
Solved! Go to Solution.
Can you please post what is the input and what is the output expected.
That will give more clarity to address the issue.
Many thanks
Shanker V
Input - convert(varchar(5),DateDiff(s, [RobotStartProcessingTime], [RobotEndprocessingTime])/3600)+':'+convert (varchar(5),DateDiff(s, [RobotStartProcessingTime], [RobotEndprocessingTime])%3600/60)+':'+convert(varchar (5),(DateDiff(s, [RobotStartProcessingTime], [RobotEndprocessingTime])%60)) as Robot_Processing_Time
Output Needs to Develop in Alteryx, unable to make formula in Alteryx.
Solution - tostring(DateTimeDiff( [RobotEndprocessingTime],[RobotStartProcessingTime],"hours")/3600) +":" + tostring(mod(DateTimeDiff( [RobotEndprocessingTime],[RobotStartProcessingTime],"minutes"),60 ))+":" +tostring(mod(DateTimeDiff( [RobotEndprocessingTime],[RobotStartProcessingTime],"seconds"),60) )