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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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

Labels (1)
10 Replies
sunny_talwar
MVP
MVP

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
MVP
MVP

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

canmarroig
Partner - Creator
Partner - Creator
Author

No timestamp

sunny_talwar
MVP
MVP

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

BalaBhaskar_Qlik
Master
Master

Try:

='>=' & $(vMaxDate) 

='=' & $(vMaxDate)