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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

can we store more than value in a variable in qlikview

Hi guys

Sorry for posting the question on weekend

I want to store more than one Tagnames in a variable so that i can add or remove the tagnames at one place.

I mean i want to create a variable something like below

Let vTagsForEfficiency= ('MaEfficiency','CaEfficiency','daEfficiency');

Thank you

5 Replies
alexdataiq
Partner - Creator III
Partner - Creator III

Yeah, sure you cant store that string in a variable, but the question is how do you plan to add or remove the tagnames from it?

Regards

Not applicable
Author

I want to remove or add  tagnames it manually, I want to store them in a variable, so that I can use that in different places and if I want to add tagnames it is easy to enter a tagname in one place...

So you mean, we can't store in a variable . is there any way to do it??

Thank you

alexdataiq
Partner - Creator III
Partner - Creator III

Don't know If I understood correctly, maybe you could try with an Input Box (New Sheet Object -> Input Box) and assign it to your vTagsForEfficiency variable. That way you could enter the values manually.


Regards

Not applicable
Author

I want to pull the data from the database using that variable which contains several tag names, so I want that variable to be in script  .. I dont think, input box can help me

cwolf
Creator III
Creator III

You can do it in following way:

Set vTagsForEfficiency= "'MaEfficiency','CaEfficiency','daEfficiency'";

for Each vTag in $(vTagsForEfficiency) 

    // do something with $(vTag)

    ...

next

Regards