Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

last 2 years financial Data

I have financial year as follows :

2007-2008 2008-2009 2009-2010

I want 2 display only last 2 years financial Data in bar chart. i.e. for 2008-2009 2009- 2010

1 Reply
Not applicable
Author

Hi,

You can do this in two ways (Calcualted Dimension or Set Expression), the popular one is using Set Expression. Syntax will be as under:-

SUM({$<FY={">=$(=YearName(Max(Date), -1, 4))<=$(=YearName(Max(Date), 0, 4))"}>} Sales).

FYI YearName function is to get financial year which has 3 parameters YearName(<Date>,<YearOffSet>,<MonthOffSet>).

<Date>: Transaction Date

<YearOffSet>: Year off set value i.e. Current year=0, previous year=-1, next year=1 etc.

<MonthOffSet>: Year start from month

Pls revert back for any futher query in this regard.