Free Trial

Alteryx Designer Desktop Discussions

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

SUMIFS batch macro slow

allanallan
5 - Atom

I am trying to replicate an Excel SUMIF calculating Half Year To Date revenue by product.

 

There are three criteria:

  1. Product
  2. Month > Prior half
  3. Month <= Month
 

Excel SUMIF.png

 

I have created the attached macro using examples posted on this forum, however for a dataset of ~40,000 records it is taking over half an hour to complete when Excel can do this almost instantly.

 

Alteryx Macro.png

 

Is there something that can be done to speed this up?

Thanks

2 REPLIES 2
PangHC
12 - Quasar

based on your excel, i believe you can use running total tool instead. 

 

here the configuration. 

Screenshot 2023-09-27 134802.png

 

workflow: sort first ensure the month is ascending

Screenshot 2023-09-27 135203.png

 

sample result.

Screenshot 2023-09-27 134807.png

 

Qiu
21 - Polaris
21 - Polaris

@allanallan 
I dont see how is much time consumed for this flow.

I am sorry but it seems that you are not using the macro correct to minic the Sumif function.

A quick sample for your reference.

0927-allanallan-A.PNG0927-allanallan-B.PNG

Labels
Top Solution Authors