Alteryx Designer Desktop Discussions

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

Counting across files

j_alt_p
6 - Meteoroid

Dear community,

 

as I am new to Alteryx, I need your help with the following task: I have two files, one with a list of IDs and one with references to those IDs. Now I want to count the number of occurences of each ID of the first file in the second file. Here is an example:

 

First file (for which I want to compute the second and third column now):

 

IDNo of occurences citingNo of occurences cited
asd12311
fgh45620
qwe12302

 

 

Second file:

NoID citingID cited
1asd123qwe123
2fgh456qwe123
3fgh456asd123

 

 

Can anyone help with a simple solution?

Thanks!

3 REPLIES 3
DiegoParker
10 - Fireball

Hi @j_alt_p 

 

Please find my approach attached:

 

DiegoParker_0-1582716553519.png

 

In this case though you only need your second datasource to reach the output but I joined both sources anyways.

 

Hope this helps If does, can I ask you to mark it as a solution? this will help other users to find it and will allow us to close the thread. Many thanks!


Best,
Diego

 

afv2688
16 - Nebula
16 - Nebula

Hello @j_alt_p ,

 

Is this ok for you:

 

Untitled.png

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Regards

j_alt_p
6 - Meteoroid

Thanks, works perfectly!

Labels