Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Find Distinct Count

learnalteryx
7 - Meteor

Hi  Can you please help me find the Distinct Count ?

Original Data Set is below  . Please note there are more columns, I have put till  Column5 just for this example

Load CountryDischarge CountryColumn1Column2Column3Column4Column5
ALGERIAQATAR12   
ALGERIAQATAR2113 
ALGERIAPERU4564 
ARGENTINAPERU5579 
ARGENTINAECUADOR2227 

 

This is the output that I want, Load Country and Discharge Country should be grouped together see below and I need to find the Distinct Count of the numbers inside the columns

 

Load CountryDischarge CountryColumn1Column2Column3Column4 Distinct Count
ALGERIAQATAR123  3
ALGERIAPERU456  3
ARGENTINAPERU579  3
ARGENTINAECUADOR27   2

 

 

How can I find the Distinct Count 

 

Thank you

 

1 REPLY 1
Luke_C
17 - Castor
17 - Castor

Hi @learnalteryx 

 

Here's one way, it should be scalable to more columns:

 

 

 

image.png

Labels
Top Solution Authors