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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
tamilarasu
Champion
Champion

Join Table

Hi,

I am new to qlikview.I want to add a specific cell value as column for all data in that file. I have found a solution but when i put the same code in loop i got wrong result.I am not sure where i am wrong.

My output should be like below screenshot

Capture12.PNG

but i got the below output.

Capture.PNG

Script i tried

sub ScanFolder(Root)

          for each FileExtension in 'xlsx'

                    for each FoundFile in filelist( Root & '\*.' & FileExtension)

FileData:     

LOAD Sno,

     Cust,

     Prod,

     [Sold Qty],

     Price

FROM

[$(FoundFile)] (ooxml, embedded labels, table is Sheet1, filters(

Remove(Row, RowCnd(Interval, Pos(Top, 1), Pos(Top, 1), Select(1, 0)))

));

                             

LOAD

     B as Country

FROM

[$(FoundFile)] (ooxml, explicit labels, table is Sheet1)                             

WHERE RecNo() =1;

next FoundFile

          next FileExtension

end sub

Call ScanFolder('C:\Users\Tamilarasu.Nagaraj\Desktop\New folder (2)') ;

Attached sample files. Can anyone help me.

Thank you in advance.

Kind Regards,

Tamil

11 Replies
tamilarasu
Champion
Champion
Author

Nice and thank you for the explanation. thanx-smiley-emoticon.gif Simon.

tamilarasu
Champion
Champion
Author

Marc: It's fine now. animated-thanks-smiley-emoticon.gif and have a nice day.