We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

CSV output - add a delimiter at the end of a row

IMSL
7 - Meteor

Hi all,

I am using an output tool to create a CSV file. I need to add a ; to the end of each row. Does anyone know how to add it?

(the value for "Valuation Code" field is Null() )

 

2.jpg

 

1.jpg

6 REPLIES 6
caltang
17 - Castor
17 - Castor

Before your output tool, just add a formula tool and call it " ", and the data type set to v_wstring at 255 length - the content, just put " " - it'll push the ; for the end.

 

The delimiter must have a field thereafter, otherwise ; cannot be forced via Output tool

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
IMSL
7 - Meteor

@caltang Thanks for your reply, but your solution did not give me what I wanted:

 

4.jpg

 

3.jpg

 

I also tried this, and did not work:

5.jpg

 

6.jpg

 

Also tried to change the name of new column from " " to Space by using a select tool. But that one also did not help.

CoG
14 - Magnetar

You could also just brute force it. Not quite as elegant, but it is effective!

Adding-Semicolon.png

CoG
14 - Magnetar

If you need it to be more dynamic, that can be done, but the workflow will be a lot more complicated, involving the Transpose Tool.

caltang
17 - Castor
17 - Castor

Another way is to concat all fields after transpose with a summarise tool as one field, then drop all other fields. 

When outputting, drop the option to include field names, then your data should have all the “;”s mashed together. 

 

EDIT: I've tried it myself and it didn't work - theory can only take me so far... The semicolon is forced out once the setting is disabled, my bad. @IMSL you can try @CoG 's approach

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
TimN
13 - Pulsar

Here's a way.  similar to @CoG 

Labels
Top Solution Authors