Alteryx Designer Desktop Discussions

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

unique selection

AnGi
7 - Meteor

Hi guys

I have this table

 

NameValueAddress
Andrew

1

Main Street 4

Paul2Cuba street 6
Andrew2St. Church street 2
Paul3Ford street 89

 

I'm using Unique tool to select only one name from column Name, but ho i can be sure that the row with the highest value is selected?

5 REPLIES 5
Emil_Kos
17 - Castor
17 - Castor

Hi,

 

I would use this tool combination:

 

Emil_Kos_0-1623054848616.png

 

Emil_Kos_1-1623054863382.png

 

 

atcodedog05
22 - Nova
22 - Nova

Hi @AnGi 

 

Just to add you can get the highest value as unique selection by sorting value on descending and then applying unique tool. Unique tool always takes first occurrence.

 

atcodedog05_0-1623055604017.png

 

Hope this helps 🙂

 

Emil_Kos
17 - Castor
17 - Castor

Hi @atcodedog05,

 

I know that a unique tool is sorting the data first which is why I didn't propose this solution. 

 

Emil_Kos_0-1623056093970.png

That is why I am not the biggest fan of relying on the unique tool in situations like this. 

atcodedog05
22 - Nova
22 - Nova

Hi @AnGi 

 

I guess sample tool then.

atcodedog05_0-1623056308318.png

 

@Emil_Kos  Hmm, interesting that you brought it up, i think its sorting the groupby column not value column. Can you provide a usecase where it would create issue.

 

I just want to get a better understanding of this 😅

Emil_Kos
17 - Castor
17 - Castor

@atcodedog05 Sample tool is also sorting the data:

 

Emil_Kos_0-1623057740011.png

and you cannot be sure that you will get the results that you expect as this sorting will be done only on the value that you have used for the grouping. 

Emil_Kos_1-1623057747755.png

If the user wanted to have the max value of something for a certain column I don't think you can be 100% sure that you will get the correct values for a sample/unique tool. 

Labels