Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Running total

praneshsapmm
8 - Asteroid

Dear Community ,

 

I have this requirement of using running total . 

 

Group By Text 
   
Text Amount Comment
A100Matching 
B200Not Matching 
C300Matching 
A-100Matching 
B200Not Matching 
C-300Matching 

 

I would like to comment the rows if they are leading to zero by using Running total .

 

Any help . Thanks .

9 REPLIES 9
wdavis
Alteryx Alumni (Retired)

Hi @praneshsapmm 

 

I have attached a workflow which should help you with this.

 

Using the Summarize Tool to create the Running Total. You can then use the Join Tool to join the summed amount back to the original dataset. Then finally use a Formula Tool to create an IF statement which will apply the comments.

 

Let me know if this works for you!

 

Kind Regards

Will

praneshsapmm
8 - Asteroid

Hello ,

 

Thanks for the answer. 

 

But i would like to do this by running total tool .

 

Because if i use summerize tool , rows adding upto zero will be suppressed and cannot be commented as shown below : 

 

Group By Text 
   
Text Amount Comment
A100Matching 
A-100Matching 
B200Not Matching 
C-300Matching 
A-100Not Matching 
A-300Not Matching 

 

grossal
15 - Aurora
15 - Aurora

Hi @praneshsapmm,

 

would this work for you?

 

grossal_0-1596473237701.png

 

Workflow attached. Let me know what you think.

 

 

Best

Alex

praneshsapmm
8 - Asteroid

Hello ,

 

Thankyou . It works for the example i shared . But fails for below data which is actuals . Can you help . 

 

Thanks

Group By Text 
    
Text  Amount Comment
AJan258.5Matching 
AFeb258.5Matching 
AFeb-258.5Matching 
AFeb258.5Matching 
AMar-258.5Matching 
AApr-258.5Matching 
AJune258.5Non Matching 
grossal
15 - Aurora
15 - Aurora

Can you explain why it should match in Row 2?

 

Row 2 creates a running total of 517 -> Not Matching and this starts the error line ...

praneshsapmm
8 - Asteroid

From a running total tool perspective it is cumulatively summing to zero untill April so for me all are technically matching untill April for given text . For June again it is not zero. So it is not matching . 

 

Sorry i have not explained this in detail earlier. 

grossal
15 - Aurora
15 - Aurora

Maybe I am missing something, but for me a Running Total looks like this:

 

grossal_0-1596477094931.png

 

Do you want to find the last 0 and declare all values above as "Matching" and all below as "Non Matching" or what is the exact goal? I am a bit confused to be honest.

praneshsapmm
8 - Asteroid

Yes you are right . I want all the rows including "0" and above it to another tab for analysis . Hence iam commenting as 'Matching' or whatever . others to 'Non Matching' . 

 

Hope this clarifies

grossal
15 - Aurora
15 - Aurora

I think I finally got it (or at least I hope so :D)! Let's try this:

 

grossal_0-1596478405652.png

 

Workflow Sample attached. Let me know if this works!

 

Best

Alex

Labels
Top Solution Authors