Important Community update: The process for changing your account details was updated on June 25th. Learn how this impacts your Community experience and the actions we suggest you take to secure your account here.

Alteryx Designer Desktop Discussions

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

Category and subcategory for country and city

fahadvuzair
5 - Atom

Hi Experts,

 

Need help on this trying to find a solution. Please help

This is just a dummy data picked randomly.

 

Input:

 

CountryCityPersonAgeIncome
IndiaDelhiRam281000
IndiaDelhiSita27900
IndiaDelhiMohan29980
IndiaMumbaiMohit30950
IndiaMumbaiMisha70
AustraliaSydneyMark20200
AustraliaSydneyJohn18150
AustraliaPerthMicheal455000
AustraliaPerthEric382500
AustraliaPerthColette15350
AustraliaMelbourneIsable21600
USNew YorkMark26750
USWashingtonJack29800
USWashingtonMike24500
USSeattleSimon363500
USSeattleJack414700
USChicagoKelvin27550
USChicagoImran331100
USChicagoAndy55650

 

Desired Output:

 

Country/CityPersonAgeIncome
India   
DelhiRam281000
DelhiSita27900
DelhiMohan29980
MumbaiMohit30950
MumbaiMisha70
Australia   
SydneyMark20200
SydneyJohn18150
PerthMicheal455000
PerthEric382500
PerthColette15350
MelbourneIsable21600
US   
New YorkMark26750
WashingtonJack29800
WashingtonMike24500
SeattleSimon363500
SeattleJack414700
ChicagoKelvin27550
ChicagoImran331100
ChicagoAndy55650

 

2 REPLIES 2
binuacs
20 - Arcturus

@fahadvuzair One way of doing this with the batch macro

image.png

fahadvuzair
5 - Atom

@fahadvuzair wrote:

Hi Experts,

 

Need help on this trying to find a solution. Please help

This is just a dummy data picked randomly.

 

Input:

 

CountryCityPersonAgeIncome
IndiaDelhiRam281000
IndiaDelhiSita27900
IndiaDelhiMohan29980
IndiaMumbaiMohit30950
IndiaMumbaiMisha70
AustraliaSydneyMark20200
AustraliaSydneyJohn18150
AustraliaPerthMicheal455000
AustraliaPerthEric382500
AustraliaPerthColette15350
AustraliaMelbourneIsable21600
USNew YorkMark26750
USWashingtonJack29800
USWashingtonMike24500
USSeattleSimon363500
USSeattleJack414700
USChicagoKelvin27550
USChicagoImran331100
USChicagoAndy55650

 

Desired Output:

 

Country/CityPersonAgeIncome
India   
DelhiRam281000
DelhiSita27900
DelhiMohan29980
MumbaiMohit30950
MumbaiMisha70
Australia   
SydneyMark20200
SydneyJohn18150
PerthMicheal455000
PerthEric382500
PerthColette15350
MelbourneIsable21600
US   
New YorkMark26750
WashingtonJack29800
WashingtonMike24500
SeattleSimon363500
SeattleJack414700
ChicagoKelvin27550
ChicagoImran331100
ChicagoAndy55650

 

Can we achieve this without batch macro, any help please..


 

Labels