Alteryx Designer Desktop Discussions

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

Tabulating Multi Level Data

keericks
5 - Atom

I have a two field/column data file that has values like this (example)

 

STAGE                   FILENAME

Closed                    laptop.xls

Trial                        desktop.xls

Closed                   tablet.xls

Closed                   tablet.xls

Trial                       laptop.xls

Trial                       desktop.xls

Closed                   tablet.xls

 

What I'm after is the ability to show a column of each file name, and then columns showing the stages, and then the count of each time the file appears for each stage, such as:

 

FILENAME          Closed   Trial

laptop.xls                 1           1

desktop.xls              0           2

tablet.xls                  3          0

 

Hope this makes sense.

3 REPLIES 3
MarqueeCrew
20 - Arcturus
20 - Arcturus
Step 1: summarize

Group by FILENAME
Group by STAGE
COUNT (either)

You'll get:

FILENAME, stage, count as output rows

Step 2: Cross-tab

Group By FILENAME
Header = Name
Value = Count
Method = Sum

This will get you your desired data

Cheers,
Mark
Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
NicoleJohnson
ACE Emeritus
ACE Emeritus

See attached!

 

1. Summarize the data first, grouping by Filename & Status, then count the # of records for each status.

2. Cross-Tab to pivot the data, grouping by Filename, then using Status as your header and Count as your values.

3. (Optional): Use the Data Cleansing tool (or a formula) to convert Null to 0 if desired.

 

Hope that helps!

 

NJ

 

EDIT: i.e. exactly what @MarqueeCrew posted, he's just a faster typer :)

MarqueeCrew
20 - Arcturus
20 - Arcturus
If Nicole and I describe it the same way, then this way is a winner for sure!

Ps. I typed mine on my iPhone while playing with my puppy. 🐩🐾❤️
Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Labels