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: 
gauthamchilled
Creator
Creator

MAX YEAR

i have a listbox..

Year

FY2015

MY2015

FY2014

MY2014

I WANT TO CREATE A TRIGGER TO SELECT LATEST OR MAX FIELD FROM THIS LISTBOX..

HOW CAN I  CREATE AN EXPRESSION FOR SELECT IN FIELD TRIGGER TO SELECT MAX YEAR

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Check this :

=If( Index(Concat({<Year={'*$(vMaxYear)'}>}Year), 'FY'), '*FY'&vMaxYear, '*MY'&vMaxYear)

Though I believe there would be an easier expression which is not just striking in.

View solution in original post

21 Replies
Chanty4u
MVP
MVP

try this

Sum({$<Year={'2015'}>}[Sales Amount]) - expression works,

or

(Year={$(=Max(Year))})

Chanty4u
MVP
MVP

or u can give trigger

select infied  

Filedname:  date field name

String : =Max(date field)

Chanty4u
MVP
MVP

PFA

sample

tresesco
MVP
MVP

What are FY and MY stand for? Which is max year in your sample data?

settu_periasamy
Master III
Master III

Hi,

In the Trigger (May be Button Action / Text Action), Try this..

Select In Field

Field  :  Year

Search String :  ='*'&Max(Aggr(Right(Year,4),Year))

Edit

Instead of '*', Just give 'FY'

='FY'&Max(Aggr(Right(Year,4),Year))

gauthamchilled
Creator
Creator
Author

NONE OF THE SOLUTION WORKED.  ATTACHED MY REQUIREMENT.. HELP PLZ

gauthamchilled
Creator
Creator
Author

fy IS FULL YEAR

MY IS MID YEAR

settu_periasamy
Master III
Master III

Have you checked my attachment? If you need When the document open..

find the attachment

Kushal_Chawda

see this

check the OnOpen trigger