Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Community is experiencing an influx of spam. As we work toward a solution, please use the 'Notify Moderator' option on the ellipsis menu to flag inappropriate posts.

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