Qlik Community

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
IMPORTANT security patches for GeoAnalytics Server available to download: READ DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
sifatnabil
Specialist
Specialist

Re-use set analysis by replacing with a variable

Hi all,

If I have a long set analysis that I need to repeat in many places, can I store it in a variable and use it in other expressions? It doesn't seem to work if I try this:

In script:

set setanalysis={<ABC..>};

In expression:

count($(setanalysis) Id)

This causes an error.

1 Solution

Accepted Solutions
stabben23
Master
Master

Try to enclose Your variable With '{<ABC..}'

or create the Expression inside the GUI in variable overview (Ctrl+Alt+V)

View solution in original post

3 Replies
stabben23
Master
Master

Try to enclose Your variable With '{<ABC..}'

or create the Expression inside the GUI in variable overview (Ctrl+Alt+V)

stabben23
Master
Master

sifatnabil
Specialist
Specialist
Author

Thanks, the issue was that you can't put set analysis in script, as it cannot understand it -on the GUI, the variable has the phrase "Internal error" on it after reloading. Recreating the variable on the GUI fixed this.