Hello all...
Using Crystal Reports 2011 and SQL2008 DB.
I have built a report that prompts for Fiscal year(?FiscalYr) and Period(?FiscalPd). Fiscal periods are 1 through 12. Based on the period selected the select formula({FISCAL_PERIOD.ped_no} <= {?Fiscal Period}) grabs the balance for each account and period in the fiscal year selected in the detail. A summary field in the footer gives me the total for each account and the detail is hidden. The report is grouped on account number. Based on the (?FiscalYr) selected I would like to get the balances for the previous 2 fiscal years at the 12th period. It should look like this:
Account-----Selected Balance------Period 12 Previous Year-------Period 12 two years ago
1011---------------300
1012---------------875
2011---------------1500
I know I can hard code the previous periods to 12 and can do formulas for the previous years (ie. (?Fiscalyr)-1). I can get the previous years data with sub reports but would like to avoid that if possible. I appreciate your help in advance and please let me know if more clarity is needed. Thanks!
Using Crystal Reports 2011 and SQL2008 DB.
I have built a report that prompts for Fiscal year(?FiscalYr) and Period(?FiscalPd). Fiscal periods are 1 through 12. Based on the period selected the select formula({FISCAL_PERIOD.ped_no} <= {?Fiscal Period}) grabs the balance for each account and period in the fiscal year selected in the detail. A summary field in the footer gives me the total for each account and the detail is hidden. The report is grouped on account number. Based on the (?FiscalYr) selected I would like to get the balances for the previous 2 fiscal years at the 12th period. It should look like this:
Account-----Selected Balance------Period 12 Previous Year-------Period 12 two years ago
1011---------------300
1012---------------875
2011---------------1500
I know I can hard code the previous periods to 12 and can do formulas for the previous years (ie. (?Fiscalyr)-1). I can get the previous years data with sub reports but would like to avoid that if possible. I appreciate your help in advance and please let me know if more clarity is needed. Thanks!