Hello everyone,
I have two request I'd like to make of this community.
1. Could you look at my problem, as described below, and provide me with any hints and tips to a possible solution?
2. I have had trouble finding any user driven forum for Cognos Report studio besides this one. Could someone point out some more, if there are any.
Background Info:
I’m relatively new to Cognos Report studio and I'm currently trying to finalize a report about mobile phone use. However I have run into a little snag. I'm currently trying to hide a list in my report by using a conditional block based on a Boolean variable (Yes/No).
The basic idea behind the variable is: "amount A >= 0". Where amount A is a calculated value (amount B - amount C) which returns a number i.e. 17,5.
For example person X has a mobile phone for company use. Based on the companies definition of the work week (in this case mo-fr between the hours of 07:30:00 and 18:00:00) the report splits the bill between during the work week and everything else. This is presented in two separate lists on an aggregation level (such as calls, messages and data).
The total costs for each of these aggregation levels is summarized to calculate the total costs during workweek and everything else. The amount for everything else is "amount B".
The company has a set value (data item), say 5 euro's, which it won't deduct from the user's pay. This is "amount C". Anything above that amount the company won't pay for.
I have a data item in a list (single column and row) which takes amount B and deducts amount C and returns a value. This value is amount A which the user has to pay.
Based on whether amount A is equal or larger then 0 (the Boolean variable) the list should be shown or hidden. In short this is what I want to happen:
If amount A >= 0 then show list if not then hide the list.
The Problem:
When I run the report I get the following error: “An error on or around the position '0'. The variable named “amount A” is invalid.”
What I have tried:
I have duplicated the query for amount A and based the Boolean variable on the data item for amount A in the new query. Because I suspected that by encasing the list within a conditional block it might “frown” upon comparing a value within the block against the variable which determines the blocks own visibility status.
I have tried creating a buffer data item, since I figured something might be going haywire with the comparison between amount A versus the variable since the variable depends on amount A. The buffer data item was located in a duplicate query which returns the same results as amount A. This however generated the same error.
I have tried creating the buffer item in the original query but this generates the same error.
Any help is appreciated and more information will be provided upon request,
-Luhaine