Free Trial

Alteryx Designer Desktop Discussions

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

Filter or multi row formula help

markharris
6 - Meteoroid

Hi Experts,

 

I have this table below, what I need to do is only retain those with duplicate registry ID and unique country. Is this possible in filter or multi row formula?

 

Registry IDCountry
12448ES
12448AU
12514ES
1013030CZ
1026241CZ
1026243HU
1026243US
1027204AE
1027244SE
1027320IT



The desired output should be:

 

Registry IDCountry
12448ES
12448AU
1026243HU
1026243US
6 REPLIES 6
Felipe_Ribeir0
16 - Nebula

Hi @markharris 

 

One way of doing this

 

duplicates.png

Prometheus
12 - Quasar

You can use a Summarize tool to group by Registry ID and then count Registry ID. After that, bring filter out every record that has a count of 1, then join it back to the original data to get your desired output.

Grouping.PNG

Summarize to group and count.PNG

markharris
6 - Meteoroid

what if you use this data instead. The output should be null. Yet it still posted the same output. The logic is to find duplicate registry ID then check for a unique country. If the country is the same it should omit it.

12448 ES
12448 ES
12514 ES
1013030 CZ
1026241 CZ
1026243 HU
1026243 HU
1027204 AE
1027244 SE
1027320 IT

Felipe_Ribeir0
16 - Nebula

Hi @markharris 

 

Just change the summarize tool to count distinct countries by registry ID:

 

count.png

Prometheus
12 - Quasar

I added basically the same logic but for Country and used CountDistinct instead. Then I joined it back to the original data and got zero records.

Group and count.PNG

Count countries.PNG

markharris
6 - Meteoroid

Thank you for taking time to assist. 🙌

Labels
Top Solution Authors