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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anil_Babu_Samineni

Variable

Hi,

I have variable file like attachment.

I want to import these variables from one QVW to another QVW.

I want to show same as a.qvw variable to b.qvw variables with Values

- Anil

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
13 Replies
Anil_Babu_Samineni
Author

Manish,

Link is ok. But, When i follow the same way i am getting only one Variable that is first one..

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
MK_QSL
MVP
MVP

You have to use something like below loop..

Temp_Variables:

LOAD Name,

     Expression

FROM

YourFileName.xlsx

(ooxml, embedded labels, table is Variables);

For i=0 to NoOfRows('Temp_Variables')-1

  Let vName = Peek('Name', i, 'Temp_Variables'); //Name of Variables

  Let $(vName) = Peek('Expression', i, 'Temp_Variables'); //Definition of Variables

NEXT i;

Let i = null();

Let vName = null();

// Remove temp tables

Drop Table Temp_Variables;

Anil_Babu_Samineni
Author

When i load a.qvw file to b.qvw thru Binary it showing only dimensions.

I have one more question, If we are fetching the dimensions from another qvw why Groups(Drill, Cyclic) are not coming.

Can i know the reason??

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
MK_QSL
MVP
MVP

Sorry bro. no idea