Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Gopi_E
Creator II
Creator II

How to get select max of year when already year selected

Hi All,

I have field with year like

 

Year_New

2018

2019

2020

I need to select whenever i clicked on button i want max year select,so  i added action in button Actions select Field and value is =Max(Year_New), 

problem is, initially when i click on button max year selected, if i select 2018 in Year_New field then if i click on button then max year function is not performed.

Please give any solution on this,

Thanks in advance

@sunny_talwar please can you look into this

Labels (1)
1 Solution

Accepted Solutions
Gopi_E
Creator II
Creator II
Author

I got the solution

Max({1}Year_new)

Thank you

View solution in original post

3 Replies
Gopi_E
Creator II
Creator II
Author

I got the solution

Max({1}Year_new)

Thank you

Kushal_Chawda

It's because you have used Max(Year) function. If you don't select anything it will return max year, if you select any year then it will consider that year as a max year, hence you need to exclude the selection of year field in trigger. Use max({1}Year)

Gopi_E
Creator II
Creator II
Author

Thanks for the input kush,

yes, you are right, 

I got the idea and it works perfectly.