BEx Query Formula Descriptions -- Conditional Formula
My question is in regards to the description that is returned from a formula within a structure. The data I'm expecting is based on (for example) "fiscal year." I have a text variable setup that returns the result of the "fiscal year" to be displayed as the column description.
However if no data is returned for the current fiscal year, I then want to display the data for the previous fiscal year.
I have a formula setup that uses a conditional statement. It is setup as described below:
-- If data is returned based on fiscal year "2008" then use that data.
-- Else use the data based on fiscal year "2007"
-- I use a text variable that is based on 0FISCYEAR called <b>0T_FYEAR</b>
-- When the query is run, the data returned is correct --> (2007 data if there is no 2008 data)
-- The text variable is also used as the formula "description" which is set to "0T_FYEAR" so if there was 2008 data, the text variable would say "2008" and if not it would say "2007."
The problem resides in the text variable which is used as the formula description. It is displaying the technical name of the text variable (&0T_FYEAR&) instead of "2008" or "2007."
Has anyone else had this occur? I would expect that if the data coming back is correctly based on 2008 or 2007, then the text variable used for the formula description would also be set to "2007" or "2008" based on my formula condition.
Any help would be greatly appreciated and of course points will be awarded!