Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
canmarroig
Partner - Creator
Partner - Creator

Action setting a variable as dimension

Hi, i need to create a button with an action:

if i want to set my date  >= to a certain variable i can find my data set ='>='&'$(vMaxDate)'  

if my date is only = to my variabile there's no action                             ='='&'$(vMaxDate)'  

3.jpg

Can you help me?

Tks

10 Replies
sunny_talwar

I guess you are saying that this works

='>='&'$(vMaxDate)' 

but this doesn't

='='&'$(vMaxDate)'

Is that right?

Try this may be

=$(vMaxDate)

canmarroig
Partner - Creator
Partner - Creator
Author

No i've tried:

=$(vMaxDate)

also

vMaxDate

and since my variabile is a numeric value i've also tried =date(vMaxDate), not at all.

Why with '>=' it's ok?

sunny_talwar

Do you have a timestamp by chance? or is it 100% a date field?

canmarroig
Partner - Creator
Partner - Creator
Author

No timestamp

sunny_talwar

Would you be able to share a sample to check what you might be doing incorrectly?

patrickanderson
Partner - Contributor III
Partner - Contributor III

I would just try ='$(vMaxDate)'

canmarroig
Partner - Creator
Partner - Creator
Author

I've tried also this syntax but i've still problem

antoniotiman
Master III
Master III

Hi Anna,

assuming

vMaxData     =Max(DateField)

have You tried

=vMaxData

balabhaskarqlik

Try:

='>=' & $(vMaxDate) 

='=' & $(vMaxDate)