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: 
salto
Specialist II
Specialist II

Assign a field value to a variable

Hello all,

we are in the process of migrating all our QlikView docs to QlikSense. 

Sorry if this question has been previously answered, I have checked the forum but have found nothing...

I have a Field Event trigger in QlikView that is run when a Year is selected from a listBox. It:

1.- Triggers the "Select in Field" action and assigns ='(' & Max(Year) & '|' & (Max(Year)-1) & ')' to the Year field (it selects the year clicked and the previous one)

2. Assigns the =Max(Year) value to the vMaxYear variable

Is this behaviour only achievable in QlikSense by using a button & assigning the actions to it? 

Many thanks in advance for your help.

 

Labels (2)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

Yes you can assign a value using button action

but why not just define the variables as    vMaxYear =Max(Year)  ?

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

2 Replies
vinieme12
Champion III
Champion III

Yes you can assign a value using button action

but why not just define the variables as    vMaxYear =Max(Year)  ?

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
salto
Specialist II
Specialist II
Author

Thanks Vineeth, I guess i was trying to do things exactly as they were in the old Qlik document - even if it was not optimal.

Best regards.