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 Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. 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 File - Multiple structures within the same file

Punit_Kapadia
7 - Meteor

Have a CSV file

 

DateCount of OrdersCategoryAmountCurrency
01-Jan-242Shoes100USD
DateOrder NumberAmount  
01-Jan-24100150  

 

The above data structure is an output of Altreyx Workflow and when exported to csv with delimiters is as below: 

 

Header Row: Date;Count of Orders; Category; Amount; Currency

Row 3: Date;Order Number; Amount;"";"";

 

How to exlude the last 2 delimiters while exporting the data

 

Expected CSV Output

Header Row: Date;Count of Orders; Category; Amount; Currency

Row 3: Date;Order Number; Amount

 

Find and Replace does not seem to work. 

 

 

 

5 REPLIES 5
Raj
16 - Nebula

@Punit_Kapadia 
As while writing the data to CSV
it is taking the valued from headers and as the value are not present for specific row this is not going to eliminate the value 
else while rerunning the CSV the columns would be missing, and this can cause error when data is huge.

hope this help.

Punit_Kapadia
7 - Meteor

@Raj Is there a way to get the output in the expected format. As it's required for a system upload and does fail because of the schema

Raj
16 - Nebula

@Punit_Kapadia 
please find the workflow attached
this should work.

Raj
16 - Nebula

@Punit_Kapadia 
does that work?

Punit_Kapadia
7 - Meteor

Thanks Raj. It does work. 

Labels
Top Solution Authors