Using condition to set SSRS matrix column name
问题 I was trying something new, using matrix and only want to see the recent two years and i made 2 columns. The first column had this expression '=MAX(Fields!Year.Value)-1' and the second column has the expression '=MAX(Fields!Year.Value)'. I expected to only see 2 year columns but it shows all of them and on the last column it sums up all the orders. See the photos below: In the design view my matrix looks like this: The output in report is: The problem is that year 2007 only exists in another