Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

How to restart 2 different running totals if a condition is met

jhustonEFN
5 - Atom

Attempting to create a field "UploadNo" based on the running totals of two different fields that also must restart their counts when UploadNo changes.  

UploadNo increases by 1 if

If Running total>=1000 

or

Count>2

 

I can make a multi-row that updates one field but not all three.

 

Example:

Amount   Running Tot   Count  UploadNo

2,000       2,000             1            1

100             100             1            2

150             250             2            2

300             300             1            3

 

 

Thanks!

2 REPLIES 2
IraWatt
17 - Castor
17 - Castor

Hey @jhustonEFN,

Tool 3 multi row formula but this achieves what you were looking for:

IraWatt_0-1654100968497.png

Any questions or issues please ask :)
HTH!
Ira

 

DataNath
17 - Castor
17 - Castor

If you can make your UploadNo field as you say then you should just be able to use a ‘Running Total’ tool after the multi-row. Tick what running totals you want and then ‘group by’ UploadNo.

Labels
Top Solution Authors