The Alteryx Community is a finalist in three 2026 CMX Awards! Help us win Customer Support Community, Most Engaged Community, and User Group Program of the Year - vote now! (it only takes about 2 minutes) before January 9.
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Multi Row Subtraction - Dynamic Numbers to subtract

Cassie_Shaw
Meteoro

Alright. I am trying to get the total number of seconds an associate spends on a task (later this will be converted to hours, mins & secs). I have the data split by a blank row in between each associate. I am trying to use the multi row tool to say: If the cumulative seconds are null then subtract the last cumulative seconds from the one before for however many rows are above.

In the screen shot below I only have it subtracting two rows, 39348-39208. Does anyone know how to make the subtraction part of the formula dynamic, to accommodate however many rows are above?

Cassie_Shaw_0-1685042881274.png

Cassie_Shaw_1-1685042973288.png

Thanks


Cassie

7 RESPOSTAS 7
binu_acs
Polaris

@Cassie_Shaw One way of doing this

binuacs_0-1685047352630.png

 

Cassie_Shaw
Meteoro

@binu_acs Hi! I am looking to subtract all values in the Cumm Sec column for each associate. I didnt know if there was a dynamic way to say subtract all values under "associate" A for example. 

binu_acs
Polaris

@Cassie_Shaw @Can you provide some sample data and expected results?

Cassie_Shaw
Meteoro

@binu_acs Sure. So in this example I would want the 140 to be 39208-32339 = 6869 then 39348 - 39208= 140 then 6869+140= 7009 this equal the total time worked that day. But the number of cases differs by associate, its not always 3. 

Cassie_Shaw_0-1685049269423.png

As I type this, I am starting to think I need another approach. :(

binu_acs
Polaris

@Cassie_Shaw are you expecting the output like below sample data?

binuacs_0-1685050108323.png

 

binu_acs
Polaris

@Cassie_Shaw Let me know if the attached workflow works for you or not.

binuacs_0-1685050584135.png

 

Cassie_Shaw
Meteoro

@binu_acs THANK YOU! Yes, this formula helped me get my end result. I cant thank you enough. I literally worked on this ALL DAY!

Cassie_Shaw_0-1685060224963.png

 

Rótulos
Autores com maior número de soluções