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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
everest226
Creator III
Creator III

working with excel output file

I have a script with output excel file .  the question is how to remove [Formatted Data] label from first row of excel file

Export:

LOAD Category & '|'&Amount & '|'&  G1 & '|'& D1& '|'&TT& '|'&TM&  '|STSG'  as [Formatted Data]

Resident ExportNew;








omarbensalem



stalwar1

1 Solution

Accepted Solutions
OmarBenSalem
Partner - Champion II
Partner - Champion II

What's the script u're using?

try this:

YourTable:

LOAD Category & '|'&Amount & '|'&  G1 & '|'& D1& '|'&TT& '|'&TM&  '|sdfdf'   as  [FormattedData]

from source;

  

    let  idColumn=Peek('FormattedData',0,'YourTable');

  TableToExport:

Load

FormattedData         as [$(idColumn)]

Resident

  YourTable

Where

  RecNo() > 1;

store TableToExport .... ,

View solution in original post

14 Replies
OmarBenSalem
Partner - Champion II
Partner - Champion II

I did not fully understood ur question; sorry !

Can you be elaborate that more?

everest226
Creator III
Creator III
Author

so when i run those script the output file is excel which has [Formatted Data] label in first row shown as in picture. i just want that outfile file without that label in excel

sunny_talwar
MVP
MVP

May be

Where RowNo() > 1;

or

Where FieldName <> 'Formatted Date';

OmarBenSalem
Partner - Champion II
Partner - Champion II

I see, please try to adapt this to ur data:

RawTable:

Load * Inline [

  id

  1

  2

  3

];

    

    let  idColumn=Peek('id',0,'RawTable');

  TableToExport:

Load

  id          as [$(idColumn)]

Resident

  RawTable

Where

  RecNo() > 1;

store TableToExport into [lib://Data/testCommunity.csv](txt);

result:

Capture.PNG

AlipNath
Creator II
Creator II

guess you meant

or

Where FieldName <> 'Formatted Date';

- Eager to learn n grow,

Olip
sunny_talwar
MVP
MVP

Yes sir

everest226
Creator III
Creator III
Author

I am having syntax error , did i missed any ,,    

Export:

LOAD Category & '|'&Amount & '|'&  G1 & '|'& D1& '|'&TT& '|'&TM&  '|STSG'  as [Formatted Data]

Where FieldName <> 'Formatted Date';

Resident ExportNew;

drop Table ExportNew;

sunny_talwar
MVP
MVP

Where comes after Resident

OmarBenSalem
Partner - Champion II
Partner - Champion II

everest226 , have u tried this?