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: 
tamilarasu
Champion
Champion

Join specific cell as column

Hi,

I want to join a specific cell value as column in a table.  Please see the below screenshot for better understanding.

Input data

Capture1.PNG

What I need - Output

Capture2.PNG

Is this possible in load script?

Thanks in advance.

Kind Regards,

Tamil

1 Solution

Accepted Solutions
Anonymous
Not applicable

This method is dynamic.

LOAD Sno,

     Cust,

     Prod,

     [Sold Qty],

     Price

FROM

[Sample.xlsx]

(ooxml, embedded labels, header is 2 lines, table is Sheet1);

Join

First 1

LOAD

     B as Country

FROM

[Sample.xlsx]

(ooxml, no labels, table is Sheet1);

View solution in original post

7 Replies
prma7799
Master III
Master III

Hi Nagraj,

Can you post some sample data?

Thanks

PM

tamilarasu
Champion
Champion
Author

Hi prasahant,

Attached.

prma7799
Master III
Master III

PFA

Anonymous
Not applicable

This method is dynamic.

LOAD Sno,

     Cust,

     Prod,

     [Sold Qty],

     Price

FROM

[Sample.xlsx]

(ooxml, embedded labels, header is 2 lines, table is Sheet1);

Join

First 1

LOAD

     B as Country

FROM

[Sample.xlsx]

(ooxml, no labels, table is Sheet1);

robert_mika
Master III
Master III

tab1:

LOAD

Sno,

  Cust,

  Prod,

  [Sold Qty],

  Price

 

FROM

Sample.xlsx

(ooxml, embedded labels, header is 2 lines, table is Sheet1);

tab2:

LOAD

     B as Country

FROM

Sample.xlsx

(ooxml, explicit labels, table is Sheet1)

WHERE RecNo() =1

tamilarasu
Champion
Champion
Author

Hi prasahant,

Thanks. But I have around 100 files., so I can't hard code the country name each time.

tamilarasu
Champion
Champion
Author

Thank you so much All.