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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
abhaysingh
Specialist II
Specialist II

To set Trigger on MAX YEAR

i have created Fiscal Year (e.g. 2011-2012, 2012-2013, 2013-2014,2014-2015)  from Date

Year i have created from DATE is 2011,2012,2013,2014 ,

but when i am doing Max(Fiscal Year) it is giving me output 2014, but i need it should show 2014-2015 so that i can set a Trigger for max Year

Labels (1)
5 Replies
tresB
Champion III
Champion III

It is better to use dual() for such cases in the script. Or, you can try something like:

=FirstSortedValue([Fiscal Year], -Date)    as the search string for trigger.

abhaysingh
Specialist II
Specialist II
Author

thanks for your feedback but i want to set trigger for max year

it is not allowing me set max function on =FirstSortedValue([Fiscal Year], -Date)   , giving me error

er_mohit
Master II
Master II

try to use maxstring(Fiscal Year)

Not applicable

Hi Abhay,

You need to use group by for FirstSortedValue function ..

abhaysingh
Specialist II
Specialist II
Author

thanks its working