Hi
You need to create a filter on your report object, the filter can use any parameter value. Please note a parameter can only be numeric or character.
So one approach could be:
Create a new calculated date item like below. This will create a character item in form of 2016M05.
Format('date'n[Raw], 'YYMM7.')
Then put a dropdown list into the canvas area and assign this the calculated item from before to this dropdown list.
Create a parameter of type character and assign it to the dropdown list.
then create a filter on you bar chart similar to this:
( Year('date'n) = ( Parse(Substring('dateYYMM_p'p, 1, 4), 'F12.') - 1 ) )
OR
( Year('date'n) = Parse(Substring('dateYYMM_p'p, 1, 4), 'F12.') )
Now whenever to select a given month from the dropdown list, the bar chart will be filtered accordingly.
The example only covers filter for the selected year and year - 1, it needs to be adapted to also check for the month.
You then have data from two years and can use Periodic operators
Bruno
... View more