Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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 (2)
1 Reply
Qrishna
Master
Master

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.