In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

CSV header trailer

Krish
8 - Asteroid

Hi All,

Please note that I have following data as result of module.(from union & sort tool)

 

001_PKEY002_SKEY003_TYPE004_Condn
abcKey581100Closed
abcKey581200t
abcKey581300 
abcKey581300t
abcKey581999 
123Key628100Closed
123Key628300 
123Key628300 
123Key628300 
123Key628999 

 

I am able to create files per PKEY using file name like LoadFile_001_Pkey in Output tool.

Now I need to add header and trailer as follows.

1LoadString 20170831 PKEYValue 6<EndOfLine>

abcKey,581,100,Closed
abcKey,581,200,t
abcKey,581,300
abcKey,581,300,t
abcKey,581,999

3<CountofRecords(5)>  6<endofline>

 

Similarly for the other one 123Key .

 

Could you please advice how to generate the final rows?

I tried union options and manual configure but could not get correct results.

 

Thanks in advance.

 

Regards,

Krishna

1 REPLY 1
gnans19
11 - Bolide

I would concat all columns comma separated using formula tool and perform union. The final output would be a single column data stream.

Labels
Top Solution Authors