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: 
Anonymous
Not applicable

Alphabetical load order

I'm loading data into a table, I've concatenated it to show you simply. The data is loaded in this order:

Janes Crisps
Bobs burgers
Dave’s tyres

However, when i load it in qlikview it comes through like this:

Bobs burgers
Dave’s tyres
Janes Crisps

It runs them through alphabetically. I've changed the sort type to 'load order' but that doesnt work. Can anyone tell me how i load information so that it isnt alphabetical and that it loads it as it's stored in the table?

1 Solution

Accepted Solutions
whiteline
Master II
Master II

Doesn't it what you want ?

subfield(concat([Company name],',', [Row]),',',1) = Janes Crisps

subfield(concat([Company name],',', [Row]),',',2) = Bobs burgers

subfield(concat([Company name],',', [Row]),',',3) = Dave’s tyres

View solution in original post

11 Replies
marcus_sommer

QlikView sorts in GUI fields automatically, but you can set/change the sort order in all objects separate - see properties/sort.

- Marcus

whiteline
Master II
Master II

Data:

LOAD [Client Manager],

     [Company name],

     [Client name],

     [Phone number]

FROM

..\users.xlsx

(ooxml, embedded labels, table is Sheet1);

SortedData:

NoConcatenate

LOAD

*

Resident Data

Order by [Company name];

Drop table Data;

Anonymous
Not applicable
Author

Nope - didnt work (see file)

whiteline
Master II
Master II

Indeed, works perfect for Company Name.

I think you could choose the field for sorting

Order by [Company name];

Anonymous
Not applicable
Author

If i order by company name it puts it in alphabetical order. I want it in load order.

marcus_sommer

You can use rowno() and sort so in load order.

whiteline
Master II
Master II

Ah...

LOAD

      RowNo() as Row,

      [Client Manager],

      [Company name],   

      [Client name],

      [Phone number]

FROM

..\users.xlsx

(ooxml, embedded labels, table is Sheet1);

And then use Row as sorting order.

whiteline
Master II
Master II

As I understand, he want sorting within cocnat function.

Anonymous
Not applicable
Author

Yes, i'd like it sorted within the concat function. Sorting it by rowno seemed like a good idea but didnt work..