Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask 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