Free Trial

Alteryx Designer Desktop Discussions

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

Countif and Rank in designer

tomekgagola
7 - Meteor

Hi, I have been moving my work from excel to alteryx and now I have got a challenge I can not overcome. I want to replace count-if and rank from excel in alteryx. I used transpose with group by with nil luck.

 

Here is my data file:

SystemSub-SystemCountRank
AAA31
ABB21
AAA32
BBB21
BAA33
BCC12

 

I have tried to get Count column that is Count-in on Sub-system and Rank column that shows the items rank when they appear in the the file. I need Rank to filter out further down the line.

4 REPLIES 4
atcodedog05
22 - Nova
22 - Nova

Hi @tomekgagola 

 

Here is how you can do it.

Workflow:

atcodedog05_0-1631528842465.png

 

1. Using record id to map order.

2. Using summarize to get count.

3. Using join to map back the count.

4. Using multi-row formula tool to get rank.

5. Using sort tool to order back to the original order.

 

Hope this helps : )

 

atcodedog05
22 - Nova
22 - Nova

Hi @tomekgagola 

 

Rank is not matching. Can you please provide logic used for Rank.

tomekgagola
7 - Meteor

I see I have made an error with Rank. Thanks for the solution.

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @tomekgagola 

If my response helps please don't forget to mark it as solution.

Cheers and have a nice day!

Labels
Top Solution Authors