Alteryx Designer Desktop Discussions

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

Field Identification

clarrock
8 - Asteroid

Hi, 

 

I have a ID field that might not might not show up in the input file... I need to output without that row that contains but keeping the rest of the rows

 

Input eg that now has an ID column usually it doesn't but this is a one off case

 

NameAmountIDStatus
A45 Comp
B6A12Comp
C2 Comp

 

Output is a Sum

Sum
47

 

7 REPLIES 7
Emil_Kos
17 - Castor
17 - Castor

Hi @clarrock,

 

I believe you should use a combination of the filter tool + summarize tool will help you:

 

Emil_Kos_0-1604846142482.png

 

Output:

 

Emil_Kos_1-1604846154906.png

 

Please mark as a solution if it was helpful!

 

clarrock
8 - Asteroid

@Emil_Kos thanks, but if you delete the ID column from the text input file - you will get an error in the filter tool

 

as mentioned - tomorrows input file might not contain ID field and day after tomorrows file there is an ID field...so it varies. How do I ensure that anything in ID column if there will be ignored?

Emil_Kos
17 - Castor
17 - Castor

Hi @clarrock,

 

I didn't get that part. Actually the best easiest solution I know would be adding the ID column to make sure that you always have it. If you will not need it you can always remove it at a later stage.

 

Emil_Kos_0-1604847784867.png

 

messi007
15 - Aurora
15 - Aurora

Hello @clarrock ,

 

I have done the solution based on the content of the cell if I found any letter followed by 2 digit I'll consider it as an ID and I'll ignore it.

 

messi007_0-1604854448204.png

messi007_0-1604854540674.png

 

 

Attached the workflow.

 

Hope that helps 🙂

 

Regards,

clarrock
8 - Asteroid

@messi007 @Emil_Kos Thank you for your solutions - both are helpful!

 

But i'm stuck again! 😞

 

So whenever there is an ID field containing an ID(as it should) - I should summarize Amount1, whereas if theres no ID field in the input I should summarize  Amount3 - How do I create a logic in such a way this is done in Alteryx?

 

eg1 : with ID Column

NameAmount1Amount3IDStatus
A41 Comp
B52A12Comp
C63 Comp

 

Output should ignore the Name B row and sum Amount1

Sum
10

 

eg2 : Here the input has no ID column

 

NameAmount1Amount3Status
A41Comp
B52Comp
C63Comp

 

Output should just sum Amount3

Sum
6

 

(Note in both eg1 and 2 output column header should be "Sum")

 

Is this possible? Please help!

 

Emil_Kos
17 - Castor
17 - Castor

Hi @clarrock,

 

I have created a solution for you:

 

Emil_Kos_0-1604859109956.png

And the output:

 

Emil_Kos_1-1604859122333.png

 

 

 

messi007
15 - Aurora
15 - Aurora

Hi @clarrock,

 

I have a detour based on the Id and changed the SUM filed:

 

messi007_0-1604861037551.png

Attached the workflow.

 

Please don't forget to mark the my answer as solved if it works for you 🙂

 

Many thanks 🙂

Labels