Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Summing up the data based on condition

Nikhil86
7 - Meteor

Hi folks, 

 

I am sort of struggling to get over this problem I am beginner to Alteryx : I have a spreadsheet which contains UniqueIDs as seen below: I would like to put a condition within Alteryx if ABC123 contains more then once it should add the Quantity against it . Which tool can i use to handle such situation? 

 

Sum_Unique_ID.PNG

expected output should be : ABC123 = 30

8 REPLIES 8
atcodedog05
22 - Nova
22 - Nova

Hi @Nikhil86 

 

You can use summarize tool

 

Grouby ID and sum Quantity

 

Config:

atcodedog05_0-1604918191112.png

 

atcodedog05
22 - Nova
22 - Nova

Hi @Nikhil86 

 

Here is a workflow for the task.

Output:

atcodedog05_0-1604918265103.png

 

Workflow:

atcodedog05_1-1604918281964.png

 

Hope this helps 🙂


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

Nikhil86
7 - Meteor

@atcodedog05 , 

 

Thanks for this , it has resolved my issue partially however I have different fields which I would like to carry forward from Input (Date, Requester , Department) The summarize tool will just provide 2 fields UniqueID and Quantity . I was thinking more to use a formula tool to retain all the fields  

 

Test.PNG

atcodedog05
22 - Nova
22 - Nova

Hi @Nikhil86 

 

For a single unique ID you have multiple different Dates what do you want to do about it after grouby and reducing 3 rows to 1 row.

 

Can you give me an expected output.

atcodedog05
22 - Nova
22 - Nova

Hi @Nikhil86 

 

Is this what you are looking for

atcodedog05_0-1604919320277.png

 

Nikhil86
7 - Meteor

@atcodedog05 , 

 

Apologies , I did not notice in my dummy date I left the date part: Below is what i am trying to achieve: Dates will be same for the UniqueID in my scenario . Appreciate your feedback and help  

 

Input_Output.PNG

 

The output should net based on similar 'UniqueID' and Sum up the 'Quantity', assuming data wont change at all. 

atcodedog05
22 - Nova
22 - Nova

Hi @Nikhil86 

 

You can configure the sumaarize tool like below.

atcodedog05_0-1604927698785.png

Output

atcodedog05_0-1604927822524.png

 

Hope this helps 🙂


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

atcodedog05
22 - Nova
22 - Nova

Happy to help 🙂

 

Cheers and Happy Analyzing 😀

Labels