ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
解決済み

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

doogra
アトム

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!

2件の返信2
danilang
19 - Altair
19 - Altair

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

 

doogra
アトム

Thank you so much! That's really helpful.

ラベル
トップのソリューション投稿者