Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Show only 3 FY trend

HI Experts!

I would need help showing a 3 FY trend.

Untitled.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)

I have a data columns in my excel telling me which fiscal year it is. (FY14,FY15,FY16,FY13,etc).

Thank You

~Jia sheng

4 Replies
Anonymous
Not applicable
Author

Hi,

Do you have any Year field? (without the FY word). If yes, you can do a set analysis like this:

sum({<Year={'>=$(=max(Year)-2)'}>} Value)

This will get the year that is greater than the max year minus 2 years.

Now if you want to get the current year (Today()) minus 2 years (FY17,16,15)

sum({<Year={'>=$(=max(Year(Today()))-2)'}>} Value)

Anonymous
Not applicable
Author

Hi Yddona,

I do not have a year field (without any FY word). I wanted to use something like this: fyear = {">$(=Max(fYear)-3)"}.

However it only works with numeric field.

Anonymous
Not applicable
Author

If you want the current year, you can use the Today() function.

Do you have any date field? If really don't have, I recommend you create your own Year field to identify numerically the FY.

beck_bakytbek
Master
Master

Hi Jia,

try this:

if (aggr(rank(Sum(Your Value)), FY) <= 3, FY, Null()) and forget to surpress the Null-Values

i hope that helps

beck