Qlik Community

Ask a Question

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Announcements
March 11, 2PM EST: Do More with Qlik - Getting Started wtih Qlik Sense SaaS - Redux. REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
jiasheng
Creator
Creator

Show 3 Fiscal Years Trend

Hi experts!

I want to show a 3 Fiscal Year(FY) trend on multiple line chart.

I have a data columns in my excel telling me the fiscal year the transactions is, but I am not sure how to show 3 FY  trend.

fiscal Year Trend.PNG

Here, it is showing me 4 FY trend, which is what I have in my excel data. Now I only want to  show 3 FY ( Current FY and pas 2 FY)

How do I script it to show only 3 FY?

Regards,

Frederic

1 Solution

Accepted Solutions
vinieme12
Champion II
Champion II

Add something like below in set analysis that says

fyear = {">$(=Max(fYear)-3)"}

View solution in original post

4 Replies
vinieme12
Champion II
Champion II

Add something like below in set analysis that says

fyear = {">$(=Max(fYear)-3)"}

View solution in original post

vinieme12
Champion II
Champion II

jiasheng‌ if your query is resolved please close the thread or provide more detail!

Qlik Community Tip: Marking Replies as Correct or Helpful

jiasheng
Creator
Creator

Hi, where do I add this in as I already have a measure?

vinieme12
Champion II
Champion II

You need to use this on a numeric Year field

the above set translates to; example

fyear = {">$(=Max(fYear)-3)"}


fYear = > (2017 - 3);  ie fYear > 2014 .......so in your chart you will see data for year 2015,2016,2017

fyear  should be a numeric year field with values like 2014,2015,2015 etc..