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

Excel join in worksheet where data is grouped

Good day,

     I have a workbook that I would like to join (ETN) based on one field in a worksheet.  The format within the sheet is grouped so the related information appears to the typical join as blank.  My guess is I need some scripting upon the load, but not sure how to do it.  I have attached an example of a limited amount of data.  Any thoughts or ideas would be much appreciated.

1 Solution

Accepted Solutions
Nicole-Smith

Data:

LOAD if(len([1])>0,[1],peek('1')) as [1],

     if(len([2])>0,[2],peek('2')) as [2],

     if(len([3])>0,[3],peek('3')) as [3],

     if(len([6])>0,[6],peek('6')) as [6],

     if(len([ETN])>0,[ETN],peek('ETN')) as [ETN]

FROM hierarchy.xlsx

(ooxml, embedded labels, table is Sheet1);

View solution in original post

4 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See attached qvw. Is that what you need?


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

unfortunately I don't have purchased licence yet so I can' see your script in Qlikview

Nicole-Smith

Data:

LOAD if(len([1])>0,[1],peek('1')) as [1],

     if(len([2])>0,[2],peek('2')) as [2],

     if(len([3])>0,[3],peek('3')) as [3],

     if(len([6])>0,[6],peek('6')) as [6],

     if(len([ETN])>0,[ETN],peek('ETN')) as [ETN]

FROM hierarchy.xlsx

(ooxml, embedded labels, table is Sheet1);

Anonymous
Not applicable
Author

This is what I needed.  Thank you all very much