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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

set analysis and variables

hi,

in my script i load a field that states the current week i am in. i want a guage chart to be based on all the weeks that's equal to the current week.

should i declare a variable and use the variable in the set analysis part of guage or what? how do i do the declaration and where?

sum({<Week = {$(vCurrentWeek)} >} total)

thanks,

Lambert

2 Replies
Not applicable
Author

Must declare the variable in your script before the set analysis

Not applicable
Author

To declare a variable the way is:

Settings > Variable OverView > Add