Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Cross Tab, Concatenate, and Creating a Total Column and Row Help

JacobGFMR
7 - Meteor

Hello,

 

I am trying to create a pivot-like table, and am having quite a few issues. 

I have a couple questions, and am hoping someone can help me design the table as I need. 

 

I've gotten a pretty good ways, but have hit a wall. 

 

I'm looking to create a table like below, but I need the following:

 

1. I would like the associate name to be concatenated with the their ID (A396271, for example), and the name is provided in my input document. 

2. I would like to remove all Nulls, and the Data Cleansing tool isn't removing them as I assume because they are not strings. 

3. I would like to a new row and a new column to total the columns and rows. 

4. And finally, I would like to have all the information in a table format.

 

 

JacobGFMR_0-1617365947195.png

 

I know this is a lot, but I'm hoping someone can point me in the right direction. 

 

Thank you. 

 

8 REPLIES 8
Qiu
21 - Polaris
21 - Polaris

@JacobGFMR 
It should not be diffucult, but to help us, can you provide the sample input and output in data format, not a picture.

JacobGFMR
7 - Meteor

Here is a sample input. 

 

Queue_IDQueue_NameManagerWork ItemItem_TypeSub_Type
A111111John DoeSmithW123456-02APR21WITHDFULLPO
A111115Jane RoeSmithW123457-02APR21WITHDPROCES
A111222James DeeSmithW123458-02APR21WITHDFULLPO
A111333John JohnRogersW123459-02APR21WITHDSSSSSS

 

I need to only show Manager Smith's team's info, so I don't need Manager Rogers' team's info, and I would like to have a table showing something similar to the below. 

 

Item_TypeSub_TypeJohn Doe - A111111Jane Roe - A111115James Dee - A111222Total
WITHDFULLPO1 12
WITHD PROCES 1 1
Total 1113
marcusblackhill
12 - Quasar
12 - Quasar

Hey @JacobGFMR !

 

Thanks for share a example data, like @Qiu said, that helps to understand how we can help you. I saw you didn't considered the sub type "SSSSS", don't know if was a mistake.

 

You can see my example attached to solve your question, hope that helps!

marcusmontenegro_0-1617368550652.png

marcusmontenegro_1-1617368559969.png

 

 

 

AngelosPachis
16 - Nebula

Maybe you can try this @JacobGFMR ?

 

AngelosPachis_0-1617368879908.png

 

Qiu
21 - Polaris
21 - Polaris

@AngelosPachis @marcusblackhill 
Good ones. and I can sit back now. 😁

JacobGFMR
7 - Meteor

@AngelosPachis

 

Thank you for the provided example work flow. 

I have used it and am very close to what I am needed, but I still have an issue. 

 

For example, when I have the following information, I am not getting the type of output I want. 

Provided is an example of my input, what I'm getting as my output, and what I am needing as my output. 

 

INPUT

Queue_IDQueue_NameManagerWork ItemItem_TypeSub_Type
A111111John DoeSmithW123456-04APR21WITHDFULLPO
A111111John DoeSmithW123457-04APR21WITHDFULLPO
A111111John DoeSmithW123458-04APR21WITHDFULLPO
A111111John DoeSmithW123459-04APR21WITHDINSERV

 

OUTPUT

Item_TypeSub_TypeJohn Doe - A111111John Doe - A111111John Doe - A111111John Doe - A111111Total
WITHDFULLPO111[Null]3
WITHDINSERV[Null][Null[Null]11
TotalTotal11114

 

NEEDED OUTPUT

Item_TypeSub_TypeJohn Doe - A111111Total
WITHDFULLPO33
WITHDINSERV11
TotalTotal44

 

How can I get the output to do a sum of all Sub_Type for a given Queue_ID where it doesn't show a different column for each/same Sub_Type? 

I need to know the total amount of the different Sub_Types for the given Queue_ID. 

 

Please let me know if this makes sense. 

 

Thank you. 

afv2688
16 - Nebula
16 - Nebula

Hello @JacobGFMR ,

 

would this work for you?

 

Untitled.png

 

Regards

echuong1
Alteryx Alumni (Retired)

To add the totals, try using the Add Totals Crew macro. This will add row and column totals easily.

 

echuong1_0-1617628881506.png

 

Labels
Top Solution Authors