DJWheezyWeez
Technical User
I'm using CR XI.
I have a PeriodID and Year fields. PeriodID has numbers 0 through 12 which are months and PeriodID 0 is the Beginning Balance at the start of the year. The Year field only has two years, the current one and the next one (2010/2011). I'm working with a fiscal calender so PeriodID 1 is April and we are currently in the 2011 calender year. {table.Balance} tells me money made or lost for each month.
My current parameters have me choose a PeriodID range and either one or both years. If I want to look at {table.Balance} for May, I would need to look PeriodIDs 1 and 2 (April and May) for 2011 as well as PeriodIDs 0-12 for 2010. Problem is they are seperate fields. If I choose PeriodID 1 and 2 and both years, I would only get balances for those 4 months. If I choose PeriodIDs 0-12 and both years, I would get everything I needed but I would also get balance data from June which I do not want.
I've made the report work with this formula:
but I want to use minimum({table.YEAR}) in place of typing in the minimum year every time it changes. If I use minimum({table.YEAR}), I can't use it as a restriction. Is there a way around this or will I need to change the report everytime the year changes?
I hope this makes sense and any help is greatly appreciated.
-DJWW
I have a PeriodID and Year fields. PeriodID has numbers 0 through 12 which are months and PeriodID 0 is the Beginning Balance at the start of the year. The Year field only has two years, the current one and the next one (2010/2011). I'm working with a fiscal calender so PeriodID 1 is April and we are currently in the 2011 calender year. {table.Balance} tells me money made or lost for each month.
My current parameters have me choose a PeriodID range and either one or both years. If I want to look at {table.Balance} for May, I would need to look PeriodIDs 1 and 2 (April and May) for 2011 as well as PeriodIDs 0-12 for 2010. Problem is they are seperate fields. If I choose PeriodID 1 and 2 and both years, I would only get balances for those 4 months. If I choose PeriodIDs 0-12 and both years, I would get everything I needed but I would also get balance data from June which I do not want.
I've made the report work with this formula:
Code:
if {table.PERIODID} in 0 to 12 and
{table.YEAR} = 2010
then 0
else {table.PERIODID}
I hope this makes sense and any help is greatly appreciated.
-DJWW