Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
satishsure
Contributor
Contributor

Concatenation fields having spaces

I have field called "Net Value" which has space.So I could not be able to use it from the Excel.

LoadList:

LOAD * INLINE [

FileName,FieldList

'load20','GrossValue,Net Value"

];

LET vLoadFieldList = Peek('FieldList',0,LoadList); 

LOAD

  $(FieldList)

  

      

  FROM

       

        [$(Transfilespath)$(Transfilename)]

        (ooxml, embedded labels, table is dt);

4 Replies
sunny_talwar

Try this

LoadList:

LOAD * INLINE "

FileName,FieldList

'load20','GrossValue,[Net Value]'

";

LET vLoadFieldList = Peek('FieldList',0,LoadList); 

LOAD $(vLoadFieldList)

FROM [Del1.xlsx]

(ooxml, embedded labels, table is val1);

DROP Table LoadList;

satishsure
Contributor
Contributor
Author

Will Check ..Thank you..Sunny..:-)

satishsure
Contributor
Contributor
Author

I have another issue like.I have file name contains "Trans Sales 2016.xlsx". file name has spaces

I need to verify the file name has 2016 or  not not.

let vfile2016           =   'Trans Sales 2016.xlsx';

Let vfilename =  'Trans Sales 2016.xlsx';

if( WildMatch(($(vfilename)), $(vfile2016)) >= 1 Then

Concatenate (Data1);

end if

exit SCRIPT;

sunny_talwar

May be within single quotes

IF WildMatch('$(vfilename)', '$(vfile2016)') Then