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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Storing data from multiple tables in a text file

Hi All,

Is it possible to store the data from multiple tables in qlikview into a single text file.

Thanks,

Asma

4 Replies
sujeetsingh
Master III
Master III

What information you want to same the table in the qlikview.

You can use table box and export to exel and then save .

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Yes, first concatenate the two tables into one table and then store the resulting table in the text file.


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

Yes you can do it...

use it like ::

Table1:

LOAD SicknessMonth ,

     TargetSickness,

     ActualSickness

   

FROM  ABC;

Concatenate

LOAD SicknessMonth ,

     TargetSickness,

     ActualSickness

   

FROM  XYZ;

STORE Table1 INTO $(vQVDPath)Tabel.csv(txt);

Thanks

BKC

petter
Partner - Champion III
Partner - Champion III

If you accept to have a Macro triggered from a button you could use the ServerSideExportEx method to export to a text-file AND append if you like too.... It has a parameter to specify append explicitly.

Example:

Sub Export

     set tb = ActiveDocument.GetSheetObject("TB01")

     tb.ServerSideExportEx "C:\test.txt" , ";" , 1,1252,-1       '0=HTML, 1=Text, 2=Bitmap, 3=XML, 4=QVD, 5=BIFF

End Sub

     The 1 is for Text

     1252 is the CodePage .... Windows Codepage 1252

     -1 means append, 0 means overwrite or create....