Alteryx Designer

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

Collapsing state/provincial data into country-based data for certain countries

Highlighted
5 - Atom

Hi,

 

I’m trying to import the attached file (time-series ) and collapse the rows for countries that have more than one country entry (Canada, Australia, China, etc. have data broken out into states/provinces, I want just one entry for the country). However, I haven't been able to do it successfully yet. I've attached my current workflow. Any hints? Thanks!

Highlighted
17 - Castor
17 - Castor

Hi @doogra 

 

From what I could see from the image of your workflow, you made a good start.  

 

w.png

After the transpose, group by country and date and then cross tab using Country as the key and Date as the headers.  The dynamic rename at the end tidies the headers.

 

r.png

 

Dan

 

Highlighted
5 - Atom

Thank you so much! That's really helpful.

Labels