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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Load order

Hi guys. I’ve got the following table

Client Manager

Company name

Client name

Phone number

Sarah

Bobs burgers

Sarah Smith

01233444444

Sarah

Bobs burgers

Ed Jones

01234656565

Sarah

Dave’s tyres

Dan Jackson

01233555566

Robert

Steve’s fish-shop

Jacob Green

01222333555

I load this from a file:

Load

[Client Manager],

[Company Name],

[Client name],

[Phone number]

FROM

(ooxml, embedded labels, table is Sheet1);

I’ve created a table which looks like this to sort them into client manager:

Client Manager

Company 1

Client 1

Company 2

Client 2

Company 3

Client 3

Sarah

Bobs burgers

Sarah Smith

Bobs burgers

Ed Jones

Dave’s tyres

Dan Jackson

Robert

Steve’s fish-shop

Jacob Green

Using the following:

subfield(concat([Company Name],','),',',1)

subfield(concat([Client Name],','),',',1)

However, these get mixed up (as the company names load in alphabetical order) which loads them like this


Client Manager Company 1 Client name Company 2 Client name Company 3 Client name
Sarah Bobs burgers Dan Jackson Bobs burgers Ed Jones Dave’s tyres Sarah Smith
Robert Steve’s fish-shop Jacob Green



Is there any way to load the original order (like you would do with an inline) but from an actual file?

See attached files for more information

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See attached qvw


talk is cheap, supply exceeds demand

View solution in original post

6 Replies
Not applicable
Author

Hello,

Are you changing your index of your subfield accordingly

subfield(concat([Company Name],','),',',1) for Company 1

subfield(concat([Company Name],','),',',2) for company 2

Thanks,

sujeetsingh
Master III
Master III

Why dont you ceck for load order sorting.

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See attached qvw


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

Looks like Gysbert Wassenaar has it - one question though, where on earth does vCompanyConcat come from?

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

It's a variable I added to make the expressions simpler. Same for the variable vClientConcat. In other words, I moved part of the expression to a variable and use the variable in the expression instead. Make reuse possible and so reduces typing, maintenance and chance of errors because of typo's.


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

The information isn't coming through as loaded, it's still coming through alphabetically - how can i get it to come through as loaded so that

Client Manager

Company name

Client name

Phone number

Sarah

Toms trucks

Joe

01233444444

Sarah

Bobs burgers

Ed Jones

01234656565

Sarah

Dave’s tyres

Dan Jackson

01233555566

Robert

Steve’s fish-shop

Jacob Green

01222333555

comes through correctly. As it stands it comes through as

Bobs burgers - Dan Jackson

Dave's tyres - Ed Jones

Toms Trucks - Joe