Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Converting Tree Structure Hierarchy to Flat File

Ragini1
8 - Asteroid

Hi All,

 

I have to convert the below format to a flat file structure. How can I do that? Can someone pls help?

 

TRIAL_BAL - Total TB    
├─────────────────────────TOT_ASSETS - Total Assets   
├─────────────────────────TOT_CUR_AS - Current Assets  
├─────────────────────────TOTAL_CASH - Cash and Cash Equivalents
├─────────────────────────CASH_ACCTS - Cash 
├─────────────────────────1000001000 - ABC
├─────────────────────────1000002000 - XYZ
├─────────────────────────1000003000 - QWE
├─────────────────────────1000004000 -JKL
3 REPLIES 3
Amol_Telore
11 - Bolide

Hey @Ragini1 

 

I am not quite sure if I understand your requirement completely. Could you share snapshot of how output data would look like after converting it to flat file.

Ragini1
8 - Asteroid

Hi Amol,

 

This is how the output should look like.

TRIAL_BAL - Total Trial BalanceTOT_ASSETS - Total AssetsTOT_CUR_AS - Current AssetsTOTAL_CASH - Cash and Cash EquivalentsCASH_ACCTS - Cash1000001000 - ABC
TRIAL_BAL - Total Trial BalanceTOT_ASSETS - Total AssetsTOT_CUR_AS - Current AssetsTOTAL_CASH - Cash and Cash EquivalentsCASH_ACCTS - Cash1000002000 - XYZ
TRIAL_BAL - Total Trial BalanceTOT_ASSETS - Total AssetsTOT_CUR_AS - Current AssetsTOTAL_CASH - Cash and Cash EquivalentsCASH_ACCTS - Cash1000003000 - QWE
TRIAL_BAL - Total Trial BalanceTOT_ASSETS - Total AssetsTOT_CUR_AS - Current AssetsTOTAL_CASH - Cash and Cash EquivalentsCASH_ACCTS - Cash1000004000 -JKL
OllieClarke
15 - Aurora
15 - Aurora

@Ragini1 

 

How's this:

OllieClarke_0-1660049271150.png

n.b. I'd turn amp off for this workflow as record order does in fact matter

 

Hope that helps,

 

Ollie

Labels