Announcement | We'll be doing maintenance between 2-3 hours, which may impact your experience. Thanks for your patience as we work on improving the community!

Alteryx Designer Desktop Discussions

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

Update the Count column on group level

alt_tush
9 - Comet

Hi,

I have below set of data

 

DeptTypeCountry
ITDEVELOPERUK
ITDEVELOPERUS
ITDEVELOPERFR
HRSALARYAU
HRSALARYIN
ADMINAssetUK
ADMINAssetUS
ADMINAssetAU
ADMINAssetFR

 

I want to update the count column based on group level of Dept and Type :

 

My expected output is in count column is 

 

DeptTypeCountryCount
ITDEVELOPERUK3
ITDEVELOPERUS3
ITDEVELOPERFR3
HRSALARYAU2
HRSALARYIN2
ADMINAssetUK4
ADMINAssetUS4
ADMINAssetAU4
ADMINAssetFR4

 

Can you please assist me.

2 REPLIES 2
ShankerV
17 - Castor

Hi @alt_tush 

 

This can be achieved in 2 steps.

 

1. Summarize tool

2. Join tool

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @alt_tush 

 

Step 1: Summarize tool

 

Dept -> Group By

Type -> Group By

Type -> Count

 

Step 2: Join tool

 

Connect the Left join to Input tool

Connect the Right join to Summarize tool

 

Join key

Dept = Dept

Type = Type

 

Note: Deselect two columns which will be repeated (Right Dept. Right Type)

 

With the above 2 steps, you can get the same output as expected.

 

Many thanks

Shanker V

 

Labels