Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
userpd_2021
Contributor III
Contributor III

How can I sort the fields and store in the excel maintaining the sequence of the columns ?

 

Hi All,

Simplifying my question with an example/ a case. I am loading an storing the data in excel format

Excel:
Load Distinct
Region,
Location,
Customer,
Customer Email,
Area
resident table ;
Store Excel into '$(vFileNamePath)'(txt);

Desired excel output;

Region Location Area Customer Customer Email
         

 

Output that I am getting in the excel is in alphabetic format. How do I get the above output.

Area Customer Customer Email Location Location
         
Labels (3)
1 Reply
krishna_2644
Specialist III
Specialist III

Set vFileNamePath = 'C:\Users\Krrish\Desktop\Comm\excel.csv';

Excel:
Load * inline [
Region, Location, Customer, Customer Email, Area
A, xyz, pqr, pqr@abc.com, efg
];

Store Excel into '$(vFileNamePath)'(txt);

 

This works for me.