CynthiaBlue
Programmer
I am very new to cognos... we have cognos 8, Report Studio. I have just started working on it a couple of weeks ago. I apologize in advance if my questions are not clear or don't make sense.
Anyway, I am building a report. I know how to select certain records based on my framework. My question is this.
The user inputs the Fiscal Year. I want to take this Fiscal Year (that is a char) and find the prior Fiscal Year. Then I want to first determine if the prior Fiscal Year is closed or not based on the Fiscal_Year table.
If it is closed, I sum some records based on various criteria, if it is not closed, I do some other things. I know how to do the summing.
I don't know how to get the prior Fiscal Year. Do I need to run a macro or a query right after the prompt page, convert the char FY to a number, subtract by 1 to find the prior Fiscal Year, and then use that, as a variable or another component type to do my if statement?
Or should I do something in the framework to gather that information?
I appreciate the help.
Thanks!
Anyway, I am building a report. I know how to select certain records based on my framework. My question is this.
The user inputs the Fiscal Year. I want to take this Fiscal Year (that is a char) and find the prior Fiscal Year. Then I want to first determine if the prior Fiscal Year is closed or not based on the Fiscal_Year table.
If it is closed, I sum some records based on various criteria, if it is not closed, I do some other things. I know how to do the summing.
I don't know how to get the prior Fiscal Year. Do I need to run a macro or a query right after the prompt page, convert the char FY to a number, subtract by 1 to find the prior Fiscal Year, and then use that, as a variable or another component type to do my if statement?
Or should I do something in the framework to gather that information?
I appreciate the help.