Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
louisernould
Contributor III
Contributor III

Export to Excel & dimension

Hi everybody !!

This question is about macro and dimension.

In my Qlikview, I have one dimension : 'client': A,B,C,D,E. I made a table with the dimension 'client', and I created a button to extract my table to Excel. Here is the script of my button:

Sub exportToExcel()

Set obj = ActiveDocument.GetSheetObject("CH102")

obj.ExportBiff "C:\Test.csv"

Set obj = nothing

End Sub

No problem for this, I have my excel file on my folder, everything's ok

My question is: how can I extract a specific excel files for each dimensions ?

for exemple: if I select the 'client' A, and then I press the button, I want to find in my folder, an excel file with the name: 'A_Test.csv'

And If I choose the 'client' D, I want to find 'D_Test.csv'


Do you have any Ideas ? or do you know if I can do something like that on QlikView ?


Thanks for your help !


Have a nice day,


Regards,


Louis

3 Replies
stabben23
Partner - Master
Partner - Master

Hi,

NPrinting have that kind of reduce for excel.

giacomom
Partner - Contributor III
Partner - Contributor III

Hi Louis,

take a look at this post:Export Qlikview objects to multiple Excel sheet

Regards,

Giacomo

stabben23
Partner - Master
Partner - Master

If you have Publisher, loop and reduce the file on your dimension and do a: Store tablename into test.csv(txt); in your scipt. Also use somekind of prefix in publisher settings. The csv could easy be a xls file.