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.
SOLVED

Running Total/Increment That Restarts after NULLs

nero_t
5 - Atom

Hi,

 

I'd like to create a running total, really to increment the number of consecutive days we have value in hours. Is there a way to solve this in Alteryx Desktop?

 

Alteryx Result screen shot is where I am at, while the Excel screen shot is the result I am looking for.

 

Thanks in advance!

 

nero_t_0-1757059775925.png

 

nero_t_1-1757059880080.png

 

 

3 REPLIES 3
davidskaife
14 - Magnetar

Hi @nero_t 

 

The Multi-row Formula tool configured like below should work for you. I've assumed 'Counter' is static:

 

davidskaife_0-1757060608295.png

 

Gaurav_Dhama_
12 - Quasar

Same approach as @davidskaife but different formula

if isnull([Counter]) then null() else max([Row-1:RunTot_Counter],0)+1 endif 
nero_t
5 - Atom

Very cool! Thank you!!

Labels
Top Solution Authors