Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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;
You can create an input box and add all variables here.
now using send to excel you can import them in an excel file.
now use below to use them in another qvw.
http://www.qlikfix.com/2011/09/21/storing-variables-outside-of-qlikview/
Hi Anil,
Hope these threads will help you.
Importing and exporting variables - The Qlik Fix! The Qlik Fix!
You can try with attached macro.
With first macro you can save all your variables to excel sheet and with the second you can import these Variables into another qvw.
hope that helps!
Manish,
Thanks for attempting.
I have Thousands of Variable, It takes time to add is there any other option to create a variable with that Variables??
this might be helpful too!
Great.. I haven't seen any application with THOUSANDS of variables...
Frank,
In that Variable it showing only Excel. But, I want to show all over here with Directly.
vImport1 | ='Imported variable #1' |
vImport2 | =Replace('$(vImport1)', '1', '2') |
vImport3 | =Left('$(vImport2)', Len('$(vImport2)') - 1) & (Right('$(vImport2)', 1) + 1) |
Might be Previous Developer is Mad.
Anyway, Can i know After send to excel it showing like = as well.
Do we require to delete that field in Excel or what?
You can delete the 2nd field having '=' and use the link which is given...
This will allow you to import variables using excel file.