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

Making a key load script

Hi,

I have Client number , Unit Number (JB) and Small Unit Number (LP) as columns in one table.

I would like to have the key like this below but in one column:

Client number & JB

Client number & LP

I want to do this in one table , is it possible?

I can have key CLient number & JB & LP but this would be not what i want.

Maybe i have to concatenate a lot of small tables ?

Please help,

Jacek Antek

1 Solution

Accepted Solutions
swuehl
MVP
MVP

You can load your table two times and create your key first using  Client number & JB, then using Client number & LP:

TABLE:

LOAD Client number & JB as Key,

          ...

FROM YourTable;

CONCATENATE (TABLE)

LOAD Client number & LP as Key,

          ...

FROM YourTable;

Not sure if this is what you really want, it may duplicate measures.

View solution in original post

3 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

If all 3 fields, Client, JB and LP are from same table you can try this.

Load Client,

         JB,

          JP,

          Client &JB as Key1,

           Client & JP as Key2

From Data;

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
swuehl
MVP
MVP

You can load your table two times and create your key first using  Client number & JB, then using Client number & LP:

TABLE:

LOAD Client number & JB as Key,

          ...

FROM YourTable;

CONCATENATE (TABLE)

LOAD Client number & LP as Key,

          ...

FROM YourTable;

Not sure if this is what you really want, it may duplicate measures.

Anonymous
Not applicable
Author

Hi,

This is not what i meant. Fields Key 1 and Key 2 should be in one column.

thank You for your help.

Jacek Antek