Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I'm looking to output a csv from a table in Qlik using the store command, but want a file per row in my table.
Customer | Value | Qty |
---|---|---|
ABC001 | 1000 | 100 |
DEF001 | 2000 | 20 |
XYZ001 | 1500 | 150 |
So in the example above, I'd like to output 3 csv files, ideally with the Customer Column as the file name.
Any suggestions welcome.
Regards,
Steve
Hi,
Try this.
Temp:
Load Distinct Customer From XYZ;
Let vCount = noofrows('Temp');
For i=0 to $(vCount)-1
Let vCustomer = peek('Customer',$(i),'Temp');
$(vCustomer):
Load * from xyz where Customer = $(vCustomer);
Store $(vCustomer) into $(vCustomer).csv(txt);
Drop Table $(vCustomer);
Next
Drop table Temp;
Regards,
Kaushik Solanki