Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
balasundaram
Creator II
Creator II

how to find max fiscal year?

YearName(TempDate, 0, $(vFiscalYearStartMonth)) AS FiscalYear,

above expression giving 2013-2014,2014-2015

Year(FiscalYear) as FiscalYearNum;

above expression giving 2013,2014

my concern is both are same selections are not....

i need to get max fiscal year in barchart i written set exoression like

=Count({<FiscalYearNum= {"$(=Max(FiscalYearNum))"}>}[Type]) it is working

but if i written like

=Count({<FiscalYear= {"$(=Max(FiscalYear))"}>}[Type]) it is not working

tell me how can you write setexpression by using FiscalYear filed?

2 Replies
ecolomer
Master II
Master II

You can consult this:

http://community.qlik.com/blogs/qlikviewdesignblog/2013/05/28/fiscal-year

Try this:

=Count({<Num(FiscalYear)= {"$(=Max(Num(FiscalYear)))"}>}[Type])

israrkhan
Specialist II
Specialist II

I Think you need to use Dual() function in load script, to create a number for each fiscal year..

see dual function here

Qlik Tips: Using Dual