Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

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
8 - 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 REPLIES 12
binuacs
21 - Polaris

@Meghnagupta one way of doing this

image.png

Meghnagupta
8 - Asteroid
Report DateContinentCountryForeign HoldingsForeign US PurchasesForeign US SalesForeign Valuation due to PriceAll Other HoldingsAll Other PurchasesAll Other US SalesAll Other valuation Due to Price
12/29/2023EuropeBelgium00000000
12/29/2023EuropeGermany00000000
12/29/2023EuropeIreland00000000
12/29/2023EuropeItaly00000000
12/29/2023EuropeNetherlands00000000
12/29/2023EuropeSpain00000000
12/29/2023EuropeSwitzerland00000000
12/29/2023EuropeUnited Kingdom00000000
12/29/2023EuropeTotal Europe00000000
12/29/2023CanadaCanada0000199003
12/29/2023Latin AmericaArgentina00000000
12/29/2023Latin AmericaMexico00000000
12/29/2023Latin AmericaPanama00000000
12/29/2023Latin AmericaPeru00000000
12/29/2023Latin AmericaTotal Latin America00000000
12/29/2023CaribbeanBermuda00000000
12/29/2023CaribbeanCayman Islands00000000
12/29/2023CaribbeanCuracao00000000
12/29/2023CaribbeanTotal Caribbean00000000
12/29/2023AsiaHong Kong00000000
12/29/2023AsiaIsrael00000000
12/29/2023AsiaJapan00000000
12/29/2023AsiaSingapore00000000
12/29/2023AsiaTotal Asia00000000
12/29/2023AfricaTotal Africa00000000
12/29/2023Other CountriesAustralia00000000
12/29/2023Other CountriesMarshall Islands00000000
12/29/2023Other CountriesTotal All Other Countries00000000
12/29/2023International and Regional OrganizaGrand Total0000199003
12/29/2023International and Regional Fund Shares00000000
12/29/2023International and Regional Depository Institutions00000000
12/29/2023International and Regional OrganizaOther Financial Organizations00000000
12/29/2023International and Regional Non Financial Organizations00000000
12/29/2023International and Regional Other Financial Organizations00000000
12/29/2023EuropeBelgium00000000
12/29/2023EuropeGermany00000000
12/29/2023EuropeIreland00000000
12/29/2023EuropeItaly00000000
12/29/2023EuropeNetherlands00000000
12/29/2023EuropeSpain00000000
12/29/2023EuropeSwitzerland00000000
12/29/2023EuropeUnited Kingdom00000000
12/29/2023EuropeTotal Europe00000000
12/29/2023CanadaCanada00000000
12/29/2023Latin AmericaArgentina00000000
12/29/2023Latin AmericaMexico00000000
12/29/2023Latin AmericaPanama00000000
12/29/2023Latin AmericaPeru00000000
12/29/2023Latin AmericaTotal Latin America00000000
12/29/2023CaribbeanBermuda00000000
12/29/2023CaribbeanCayman Islands00000000
12/29/2023CaribbeanCuracao00000000
12/29/2023CaribbeanTotal Caribbean00000000
12/29/2023AsiaHong Kong00000000
12/29/2023AsiaIsrael00000000
12/29/2023AsiaJapan00000000
12/29/2023AsiaSingapore00000000
12/29/2023AsiaTotal Asia00000000
12/29/2023AfricaTotal Africa00000000
12/29/2023Other CountriesAustralia00000000
12/29/2023Other CountriesMarshall Islands00000000
12/29/2023Other CountriesTotal All Other Countries00000000
12/29/2023International and Regional Grand Total00000000
12/29/2023International and Regional Fund Shares00000000
12/29/2023International and Regional Depository Institutions00000000
12/29/2023International and Regional Other Financial Organizations00000000
12/29/2023International and Regional Non Financial Organizations00000000
12/29/2023International and Regional Other Financial Organizations00000000
12/29/2023EuropeBelgium00000000
12/29/2023EuropeGermany00000000
12/29/2023EuropeIreland00000000
12/29/2023EuropeItaly00000000
12/29/2023EuropeNetherlands00000000
12/29/2023EuropeSpain00000000
12/29/2023EuropeSwitzerland00000000
12/29/2023EuropeUnited Kingdom00000000
12/29/2023EuropeTotal Europe00000000
12/29/2023CanadaCanada00000000
12/29/2023Latin AmericaArgentina00000000
12/29/2023Latin AmericaMexico00000000
12/29/2023Latin AmericaPanama00000000
12/29/2023Latin AmericaPeru00000000
12/29/2023Latin AmericaTotal Latin America00000000
12/29/2023CaribbeanBermuda00000000
12/29/2023CaribbeanCayman Islands00000000
12/29/2023CaribbeanCuracao00000000
12/29/2023CaribbeanTotal Caribbean00000000
12/29/2023AsiaHong Kong00000000
12/29/2023AsiaIsrael00000000
12/29/2023AsiaJapan00000000
12/29/2023AsiaSingapore00000000
12/29/2023AsiaTotal Asia00000000
12/29/2023AfricaTotal Africa00000000
12/29/2023Other CountriesAustralia00000000
12/29/2023Other CountriesMarshall Islands00000000
12/29/2023Other CountriesTotal All Other Countries00000000
12/29/2023International and Regional Grand Total00000000
12/29/2023International and Regional Fund Shares00000000
12/29/2023International and Regional Depository Institutions00000000
12/29/2023International and Regional Other Financial Organizations00000000
12/29/2023International and Regional Non Financial Organizations00000000
12/29/2023International and Regional Other Financial Organizations00000000
12/29/2023EuropeBelgium00000000
12/29/2023EuropeGermany00000000
12/29/2023EuropeIreland00000000
12/29/2023EuropeItaly00000000
12/29/2023EuropeNetherlands00000000
12/29/2023EuropeSpain00000000
12/29/2023EuropeSwitzerland00000000
12/29/2023EuropeUnited Kingdom00000000
12/29/2023EuropeTotal Europe00000000
12/29/2023CanadaCanada0000766254507555485
12/29/2023Latin AmericaArgentina00000000
12/29/2023Latin AmericaMexico00000000
12/29/2023Latin AmericaPanama00000000
12/29/2023Latin AmericaPeru00000000
12/29/2023Latin AmericaTotal Latin America00000000
12/29/2023CaribbeanBermuda00000000
12/29/2023CaribbeanCayman Islands000016213182
12/29/2023CaribbeanCuracao00000000
12/29/2023CaribbeanTotal Caribbean000016213182
12/29/2023AsiaHong Kong00000000
12/29/2023AsiaIsrael00000000
12/29/2023AsiaJapan00000000
12/29/2023AsiaSingapore00000000
12/29/2023AsiaTotal Asia00000000
12/29/2023AfricaTotal Africa00000000
12/29/2023Other CountriesAustralia00000000
12/29/2023Other CountriesMarshall Islands00000000
12/29/2023Other CountriesTotal All Other Countries00000000
12/29/2023International and Regional Grand Total0000782454637573487
12/29/2023International and Regional Fund Shares000043922822525-187
12/29/2023International and Regional Depository Institutions0000782454057572491
12/29/2023International and Regional Other Financial Organizations00000000
12/29/2023International and Regional Non Financial Organizations00000000
12/29/2023International and Regional Other Financial Organizations00000000
12/29/2023EuropeBelgium00000000
12/29/2023EuropeGermany0000030-5
12/29/2023EuropeIreland00000000
12/29/2023EuropeItaly00000000
12/29/2023EuropeNetherlands00000000
12/29/2023EuropeSpain00000000
12/29/2023EuropeSwitzerland00000000
12/29/2023EuropeUnited Kingdom00000000
12/29/2023EuropeTotal Europe0000030-5
12/29/2023CanadaCanada0000012152
12/29/2023Latin AmericaArgentina00000000
12/29/2023Latin AmericaMexico00000000
12/29/2023Latin AmericaPanama00000000
12/29/2023Latin AmericaPeru00000000
12/29/2023Latin AmericaTotal Latin America00000000
12/29/2023CaribbeanBermuda00000000
12/29/2023CaribbeanCayman Islands00000000
12/29/2023CaribbeanCuracao00000000
12/29/2023CaribbeanTotal Caribbean00000000
12/29/2023AsiaHong Kong00000000
12/29/2023AsiaIsrael00000000
12/29/2023AsiaJapan0000030-2
12/29/2023AsiaSingapore00000000
12/29/2023AsiaTotal Asia0000030-2
12/29/2023AfricaTotal Africa00000000
12/29/2023Other CountriesAustralia00000000
12/29/2023Other CountriesMarshall Islands00000000
12/29/2023Other CountriesTotal All Other Countries00000000
12/29/2023International and Regional Grand Total000001815-5
12/29/2023International and Regional Fund Shares00000000
12/29/2023International and Regional Depository Institutions00000000
12/29/2023International and Regional OrganizaOther Financial Organizations00000000
12/29/2023International and Regional OrganizeNon Financial Organizations00000000
12/29/2023International and Regional Other Financial Organizations0000015150
Meghnagupta
8 - Asteroid

Please review this once.. it's not working on this data

binuacs
21 - Polaris

@Meghnagupta There is a change in the pattern of data which is why it was not working, what is the expected output of your latest input file?

Meghnagupta
8 - Asteroid

@binuacs : since the actual data is huge, i am not able to join this

If you can once try on this one? Attached excel has actual input data and required data. 

binuacs
21 - Polaris

@Meghnagupta does the country always start with Belgium?

Meghnagupta
8 - Asteroid

@binuacs yes

cjaneczko
13 - Pulsar

Try this.

 

image.pngimage.png

Meghnagupta
8 - Asteroid

@cjaneczko can you please help me with the attached sample data in excel.

Since the data is huge this solution won't work.

Labels