In case you missed the announcement: Alteryx One is here, and so is the Spring Release! Learn more about these new and exciting releases here!

Alteryx Designer Desktop Discussions

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

Unique Values in a List

walkrebe
6 - Meteoroid

Hi,

 

I am trying to get a count of how many unique applications there are for certain groups from the data below 

FrequencyNameApplication
DailyAExcel, PowerPoint 
DailyAExcel
DailyAAlteryx, Excel
MonthlyAExcel, Word
MonthlyAPowerPoint
DailyBExcel
DailyBExcel

 

I want to count the number of unique applications grouped by frequency and name e.g like below - any suggestions of how I could do this please?

 

FrequencyName Number of Applications
DailyA3
DailyB1
MonthlyA3
7 REPLIES 7
hellyars
13 - Pulsar

@walkrebe 

 

Here is a potential solution.

 

Screenshot 2021-05-16 131409.png

hellyars
13 - Pulsar

@walkrebe 

 

I added a Select tool at the end to change Count to Number of Applications. 

 

The first Summary tool combines all the Applications for a given Frequency and Name.  Since they are separated by a comma "," I used a Text to Columns set to split to rows using the "," delimiter.  A Cleanse tool is necessary to get rid of extra white space, etc.  A Unique Tool filters out the duplicate values.  The second Summary tool then counts the number of unique applications associated with any Frequency+Name pair. 

 

 

Screenshot 2021-05-16 131800.png

 

apathetichell
19 - Altair

Here's the split into rows - summarize/count - data cleanse solution.

walkrebe
6 - Meteoroid

thanks - what action did you select in the summarise tool? 

apathetichell
19 - Altair

group by frequency. group by name. count distinct application.

 

that's after splitting application and datacleansing so " powerpoint" ="powerpoint"

walkrebe
6 - Meteoroid

What about in the first summarise? 

apathetichell
19 - Altair

2021-05-16.png

 

@hellyarsused a slightly different approach than me - that worfklow concatenates all values into one list (via summarize tool) - and then breaks down  - whereas I started by breaking down the values. The key elements are separating to rows by comma, data cleansing and then using a summarize. I used count/distinct in my workflow @hellyars uniqued and then counted - again both are totally solid ways to do.

 

 

Both results should work.

Labels
Top Solution Authors