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: 
AmCh
Creator
Creator

Generate a field

Hi all,

I have as an example the following table in excel to load:

a b c d
1 1 0 3
2 1 0  
3 1    
4      

 

I want to load this table an to create new field DRIVER to it such that:

DRIVER

a b c d
MAIN 1 1 0 3
MAIN 2 1 0  
MAIN 3 1    
MAIN 4      

 

How can I do it?

 

 

Thanks in advance

1 Solution

Accepted Solutions
squreshi
Contributor II
Contributor II

Hi Amch,

Add a Driver column in your script with value as 'Main'.

You can use the below script to do the same.

LOAD 'Main' as Driver, // Add Column in the Load with 'Main' as static value
             a,
             b,
             c, 
             d
FROM
[C:\Users\hp\Desktop\QlikCommunityData.xlsx]
(ooxml, embedded labels, table is Data3);

squreshi_1-1634997176186.png

 

 

Please mark it correct, if you find it useful.

Cheers !
Squeshi

View solution in original post

1 Reply
squreshi
Contributor II
Contributor II

Hi Amch,

Add a Driver column in your script with value as 'Main'.

You can use the below script to do the same.

LOAD 'Main' as Driver, // Add Column in the Load with 'Main' as static value
             a,
             b,
             c, 
             d
FROM
[C:\Users\hp\Desktop\QlikCommunityData.xlsx]
(ooxml, embedded labels, table is Data3);

squreshi_1-1634997176186.png

 

 

Please mark it correct, if you find it useful.

Cheers !
Squeshi