Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to order Excel File In Load Script

hello Dears

I want Order Excel File In Load Script

But Get Error.

Plz Help Me

Populations:

Load *, Num(  Population) as pop;

LOAD Rank,

     [Country (or dependent territory)] as country,

     Date,

     Population,

     [% of world population],

     Source

    

FROM

TB01_20150721_222616.xls ;

16 Replies
Not applicable
Author

Thank you,in

File > Table Viewer Data Load Correctly Very good.

in the Table Box ==> Properties, ==>Sort tab.

Deactivate All Fields in Sort ,Only Rank Load Order By Original Value.

But Result Not Correct Rank By DESC  (Load Script)


8.png


in Table Viewer

9.png

sasiparupudi1
Master III
Master III

Promote the rank dimension to the top and you will get your order . If you want it to be sorted on country, promote it to the top..

HTH

Untitled.jpg

sasiparupudi1
Master III
Master III

Hi

Any luck?

Sasi

Not applicable
Author

hello

thank you

But did not resolve my issue

I want Only sort In Load Script NO Visual .

Finally , And I want on the record Sort

krishna_2644
Specialist III
Specialist III

Hi Leila.

You can sort by country as well as sort by rank.

sort.PNG

see attached.

Ralf-Narfeldt
Employee
Employee

Try renaming the Rank field in the Resident load.

Then you can change the name back later.

Populations:

LOAD

     country,

     Date,

     Population,

     Rank,

     Source

   

FROM TB01_20150721_222616.xls

(biff, embedded labels, table is [Sheet1$]);

PopulationsOrder:

noconcatenate

Load

     country,

     Date,

     Population,

     Rank as rank,

     Source

resident Populations order by Rank desc;

Drop table Populations;

Rename field rank as Rank;

krishna_2644
Specialist III
Specialist III

Any Luck?