I am trying to change multiple columns based on one value prompt in report studio in a cube (running cognos 8.4). A prompt with a prefix would be a perfect solution but I cant seem to make it work. Typically I get a "Parsing error before or near position 4" even tho I can see its the exact name of a data item in the query.
I have one value prompt with YTD and QTD as static options. The parameter name is p_date. In my query I have a data item named YTD, QTD, PriorQTD, and PriorYTD. Additionally I have a data item named D_Prior which holds my prompt script - #prompt('p_date','token','[YTD]','[Prior','',']')#.
When I run the report, I get the default YTD as noted in the prompt. But when I select anything from my value prompt, it errors. As I understand it, the report should display [PriorYTD] if YTD is selected from the value prompt. Am I missing something here? Thanks in advance for any help.