We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

if the data contains one move number and multiple and different terminals

Azimuthmindspace
6 - Meteoroid

A transportation company in Canada trying to find out if one move number has more than one terminal ID, 

I am trying to find out if one move number has more than one terminal ID, I am kind of stuck as I know I should use the Formula tool but I am quite confused about the expression to be used for the result. 

I would require an assist on this.

15 REPLIES 15
Luke_C
17 - Castor
17 - Castor

Hi @Azimuthmindspace 

 

Use the Summarize Tool. Group by Move Number and Count Distinct Terminal ID. Then Filter Count >1.

ChrisTX
16 - Nebula
16 - Nebula

For the Summarize tool, use Count Distinct

 

Using this sample data:

 

Move NumberTerminal ID
A1
A2
A1
B3
B3
C3
C2
C1
D

1

 

the result is:

 

ChrisTX_0-1654622043876.png

 

Chris

IraWatt
17 - Castor
17 - Castor

Hey @Azimuthmindspace, do you have any example data?

Azimuthmindspace
6 - Meteoroid

thanks, what if it is one move number has more than one and different terminals 

Luke_C
17 - Castor
17 - Castor

@Azimuthmindspace 

 

Count Distinct returns the count of distinct (unique) terminals associated with the move number. Please attach sample data and your desired output.

ChrisTX
16 - Nebula
16 - Nebula

For this request: "to find out if one move number has more than one terminal ID" ...  use Count Distinct

 

I don't understand this question: "what if it is one move number has more than one and different terminals"

 

As @Luke_C mentioned, please attach sample input and expected output.

 

Chris

Azimuthmindspace
6 - Meteoroid

 

Azimuthmindspace_0-1654623227885.png

the Move number is 1802354 and this move number has more than one shipper or Terminal (this is an example) so if I want to only get data of move numbers having more than one and different shipper or terminals how can do it 

here the move number is 1802354 and this move as two terminals one is "SHEHAMIO" and another one is "PETOAK" 

so I am trying to find from the data if there is more than one terminal for the same Move number 

Luke_C
17 - Castor
17 - Castor

@Azimuthmindspace What does your desired output look like?

 

The summarize tool should result in 1802354 having a distinct count of 2. That tells you there's two different terminals on the move number. Now what? Do you want to concatenate the terminals into one cell? Do you want an if statement to say Yes or No? 

Azimuthmindspace
6 - Meteoroid

No i am trying to find if any move number has more than one and different terminals 

Labels
Top Solution Authors