Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
jorgelardi
Contributor II
Contributor II

Set Analysis with variables

I want to use a variable in my Set Analysis.

I created the variable Tomorrow by defining it as Today () + 1

Then I use the following expression:

= Sum ({$ <delivery_date = {'$ (= Tomorrow)'}>} QuantityProduction) but I can not get consistent values

Can someone help me?

Jorge

16 Replies
jorgelardi
Contributor II
Contributor II
Author

dd/mm/yy

vishsaggi
Champion III
Champion III

Did you try this?

= Sum({< delivery_date = {"$(=Date(Tomorrow, 'dd/mm/yyyy')) " } >} QuantityProduction)

jcampbell474
Creator III
Creator III

Ok, in your load script or the variable editor, try: Let Tomorrow = Date(Today(1)+1,'dd/mm/yy')

passionate
Specialist
Specialist

How do you set past tomorrow value.

As, your vtomorrow = Today()+1 So, the Result of Set Analysis will always remain same

juan_patrick
Creator
Creator

Jorge,

Después del signo $ los espacios no deben existir!

¡Saludos!

jorgelardi
Contributor II
Contributor II
Author

Thank you all !! I discovered my error. I had badly defined the variable Tomorrow in the script

Anil_Babu_Samineni

Please make sure to create variables in script. And then use. Meanwhile, I would ask you to mark helpful from the thread if you feel to get as you expected.

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful