Hello All,
I have a simple report which displays financials across multiple years.The report has a column group for year.When we run the report the latest 5 years data should be displayed.To achieve this I created a Filter in the group to display 5 years information.
Here is the filter.
Expression: [Year]
Operator: >=
Value: Parameters!year.value - 4
This will display latest 5 years of information in the report.For example if value of year = 2012, it displays 2012,2011,2010,2009 and 2008 information in the report.
The tricky part is sometimes there is no information for some years.If there are no financials for 2010 in the database it only displays 2012,2011,2009 and 2008.In this case I want 2012,2011,2009,2008 and 2007 information to appear on the report.
Can anybody help me with this?I am not sure how to write an expression to achieve this.
Thankyou in advance!