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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

multiple varible inside set analysis


Can we pass multiple variable inside set analysis? i am passing 4 variables, but does not work

21 Replies
Anonymous
Not applicable
Author

please post your Expression with set analysis

jonathandienst
Partner - Champion III
Partner - Champion III

You may get a response if you provide more information and, if possible a sample qvw file illustrating your problem. I do not know what you mean by "pass multiple variable".

Qlik Community Tip: Posting Successful Discussion Threads

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

Can you please post your expression and variables?

Anonymous
Not applicable
Author

=avg({$<Environment={'$(vEnvironment)'},Component={'$(vComponent)'},Year={'$(vPrevmnth1)'},Month={'$(vPrevmnth2)'}>} usage)

where vPrevmnth1=month(AddMonths(Today(),-1))
vPrevmnth2=year(Today())

i wanted to display previous month data also for previous week so passing variable

gautik92
Specialist III
Specialist III

You can pass multiple variables inside set analysis if you can post your exprssion it will be more clear for others to help you

Anonymous
Not applicable
Author

Here is my expression:

avg({$<Environment={'$(vEnvironment)'},Component={'$(vComponent)'},Year={'$(vPrevmnth1)'},Month={'$(vPrevmnth2)'}>} usage)

where vPrevmnth1=month(AddMonths(Today(),-1))
vPrevmnth2=year(Today())

i wanted to display previous month data also for previous week so passing variable

Anonymous
Not applicable
Author

Guys  i have posted the expression, i want to display previous month data and previous week data in the chart

qlikmsg4u
Specialist
Specialist

Change Variables for year and month

avg({$<Environment={'$(vEnvironment)'},Component={'$(vComponent)'},Year={'$(vPrevmnth2)'},Month={'$(vPrevmnth1)'}>} usage)

Anonymous
Not applicable
Author

Below is not correct?i want to display for previous month data in chart having dimention in drill down week,date,hour,minute. so it should display previous month weeks as dimention.

vPrevmnth1=month(AddMonths(Today(),-1))

vPrevmnth2=year(Today())