Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Working with Muli-Row formula unexpected result

MartWClimber
9 - Comet

I'm working on a workflow that gives me a bit of insight into the time our workflows take to run.

 

all the data and stuff is extracted thanks to Alteryx but i run into a problem because I need to do some calculations now row by row but with multiple rows in mind.

When I use the multi row formula tool I was expecting an other output. 

 

Formula I use within the tool.

 

 

IF [WF] == [Row-1:WF] 

   THEN [Row-1:StartTime] 

   ELSE DateTimeadd([StartTime],[TimeDifferance],"Seconds")

ENDIF

 

 

I've attached a table below with the results I get when running the data via Alteryx and I calculated the the expected output via Excel to verify the output. 

 

I think my formula is wrong 

 

 

WFTimeStartTimeTimeDifferanceStartTime ExpectedStartTime before entering multi-row formula
Workflow10:01:1216/07/2022 21:30:107216/07/2022 21:30:1016/07/2022 21:30:10
Workflow10:01:1216/07/2022 21:30:107216/07/2022 21:30:1016/07/2022 21:30:10
Workflow 50:18:1016/07/2022 21:48:20109016/07/2022 21:31:2216/07/2022 21:30:10
Workflow 50:18:1016/07/2022 21:48:20109016/07/2022 21:31:2216/07/2022 21:30:10
Workflow 50:18:1016/07/2022 21:48:20109016/07/2022 21:31:2216/07/2022 21:30:10
Workflow 50:18:1016/07/2022 21:48:20109016/07/2022 21:31:2216/07/2022 21:30:10
Workflow 50:18:1016/07/2022 21:48:20109016/07/2022 21:31:2216/07/2022 21:30:10
Workflow 50:18:1016/07/2022 21:48:20109016/07/2022 21:31:2216/07/2022 21:30:10
Workflow 50:18:1016/07/2022 21:48:20109016/07/2022 21:31:2216/07/2022 21:30:10
Worklfow 120:00:1316/07/2022 21:30:231316/07/2022 21:49:3216/07/2022 21:30:10
Worklfow 120:00:1316/07/2022 21:30:231316/07/2022 21:49:3216/07/2022 21:30:10
Workflow 140:01:4216/07/2022 21:31:5210216/07/2022 21:49:4416/07/2022 21:30:10
Workflow 140:01:4216/07/2022 21:31:5210216/07/2022 21:49:4416/07/2022 21:30:10
Workflow 200:01:3916/07/2022 21:31:499916/07/2022 21:51:2616/07/2022 21:30:10
Workflow 200:01:3916/07/2022 21:31:499916/07/2022 21:51:2616/07/2022 21:30:10

 

MartWClimber_0-1658155986163.png

 

8 REPLIES 8
ChrisTX
15 - Aurora

Can you post a screenshot of your Multi Row tool?  Did you check the box to group by WF?

 

Chris

IraWatt
17 - Castor
17 - Castor

Hey @MartWClimber,

First thing I did was convert your text Start Time to a date time using the Date Time Tool. Then I applied your formula to the new date time column:

IraWatt_0-1658155523662.png

This gave the correct results 2022-07-16 21:48:20 + 1080 seconds is 2022-07-16 22:06:30 not 16/07/2022 21:31:22.

 

Any questions or issues please ask :)
HTH!
Ira

 

binuacs
20 - Arcturus

@MartWClimber one way of doing this using the DateTimeParse function

 

binuacs_1-1658155867009.png

 

 

MartWClimber
9 - Comet

I've updated the post with a screenshot. 

also I tried group by the WF but that didn't work :(

MartWClimber
9 - Comet

@binuacs not quite because if you take a look at the new output (I think you created) I see that there is a row that contains that timestamp 21:31:22 that is correct in the sense that the starttime + 1:12 minutes equals this but the location is wrong. I would expect that timestamp to be in row 3 not in row 1 

MartWClimber
9 - Comet

Hie @IraWatt  

in my Workflow the Starttime is already in Datetime format. 

even then I think that the new field you created don't match my outcome.

 

what it should do is see if WF column is equal to the current row. if that is so use the Starttime from the previous row.

if not it should add the time + the Starttime of the previous row.

 

binuacs
20 - Arcturus

@MartWClimber Can you check the attached workflow now?

 

binuacs_0-1658156564779.png

 

IraWatt
17 - Castor
17 - Castor

@MartWClimber the example data you gave is not in the Alteryx Date time format, Its text data.

 

Im confused by your first row how does a start time of 16/07/2022 21:30:23, with a duration of 13 seconds, get your result of 16/07/2022 21:49:32 ?

Labels