Alteryx Designer Desktop Discussions

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

Split data from rows to column after a particular cell

Meghnagupta
Asteroid

Quick question on dummy data below. I want to split data after Country "Belgium" and want required mentioned output data every month.

Is it possible in Alteryx if someone can help me out over this. 

 

Input data:

 

Report DateContinentCountryForeign HoldingsForeign US Purchases
12/29/2023EuropeBelgium00
12/29/2023CanadaCanada00
12/29/2023AsiaTotal Asia00
12/29/2023AfricaTotal Africa00
12/29/2023Other CountriesMarshall Islands00
12/29/2023International and Regional Depository Institutions00
12/29/2023EuropeBelgium11
12/29/2023CanadaCanada11
12/29/2023AsiaTotal Asia11
12/29/2023AfricaTotal Africa11
12/29/2023Other CountriesMarshall Islands11
12/29/2023International and Regional Depository Institutions11
12/29/2023EuropeBelgium22
12/29/2023CanadaCanada22
12/29/2023AsiaTotal Asia22
12/29/2023AfricaTotal Africa22
12/29/2023Other CountriesMarshall Islands22
12/29/2023International and Regional Depository Institutions22

 

 

Output data:

 

Report DateContinentCountryForeign HoldingsForeign US PurchasesForeign HoldingsForeign US PurchasesForeign HoldingsForeign US Purchases
12/29/2023EuropeBelgium001122
12/29/2023CanadaCanada001122
12/29/2023AsiaTotal Asia001122
12/29/2023AfricaTotal Africa001122
12/29/2023Other CountriesMarshall Islands001122
12/29/2023International and Regional Depository Institutions001122
12 ANTWORTEN 12
cjaneczko
Pulsar

The above workflow will work you'll just need to make a branch with a Crosstab for each Column in your Data set. You'll need 8 crosstabs and then change the Join to a Multi Join. You could probably batch macro it if you have more columns than the sample dataset. 

 

Foreign US SalesForeign Valuation due to PriceAll Other HoldingsAll Other PurchasesAll Other US SalesAll Other valuation Due to Price
Meghnagupta
Asteroid

@cjaneczko I am attaching workflow which i have created.

This will sum up all the values which I don't want. If you can help further on this.

Here is an alternative sample that should work better with multiple columns:

_Main.png

Beschriftungen