If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

How to make that requirement

Started by alex_, 28 Sep 2012 06:05:32 AM

Previous topic - Next topic

alex_

Hi,
I would be very grateful if someone help me with this problem.

I need to do the following calculation, which currently can not make.

I applied screenshot is a part of the requirements for the report.

I made Member Set, which returns the last six months. I have used the following formula: (tail([GAC Scorecard (analysis)].[Months].[Months].[Month], 2).
As required, in column "R" (at right). Must return "R", where the last month (in this case is June) has been colored red, (--) If it is colored green and (A) if colored in yellow. Coloration depends on the targets set: For example: If the quantity of goods sold in a given month is [Quantity]< [Target], should coloring in red, IF [Quantity]=>[Target] – be coloring in green, If [Quantity] is close to [Target]  - yellow.
According to you, what I should to do, so to learn the desired result? What are the steps that I need to make?


Requirements.



This is the current status of report.

Greg

Define a calculated measure called [Percent of Target] as [Quantity] / [Target] and set its data format to percent.  Use this measure in your crosstab.  Define conditional formatting on the crosstab cells for the ranges desired.

For [R] define it as:
case
  when [Percent Target] < .95 then 'R'
  when [Percent Target] between >= .95 and [Percent Target] < 1 then 'A'
  else '--'
end

Use the same values as you defined for the ranges in your conditional formatting.

Hope that helps.

Greg

alex_

Thanks Greg :)

Now the problem is clearer.
In the above post I attached a picture that shows what needs be done.

I must create the report, which explains following dependencies.
Use the following data: [Quantity], [Detail Target], [Detail Threshold Poor].

[Detail Target], [Detail Threshold Poor] are defined as values in DB. And no need to write values to be compared with [Quantity].

If [Quantity] for August (for example) is < [Detail Target], then through CASE CONDITION, in crosstab have to printed one of the rear values.

This is the steps which I'm doing.
Select Query Calculation, from Create Calculation select Other Expression.

In Expression Definition write:
  CASE
WHEN [Quantity] <= [Detail Target] THEN ('----')
WHEN [Quantity] > [Detail Target] AND [Quantity]<= [Detail Threshold Poor] THEN ('A')
WHEN [Quantity] > [Detail Threshold Poor] THEN ('R')
END
•   After successful validation, select OK. And close Data Item Expression.
•   After run the report. I receive column which hasn't data.
 
And instead of the desired values – '----', 'R' and 'A'. Received '--' – no data.
What you think, where I'm wrong. 

Thanks.

Alex

RKMI

Hi Alex,

I'm not sure but I think its not able to find the [Detail Target] value for that intersection e.g. value(tuple([Month],[Detail Target])) - This should give you the value of the intersection, if anyone else wants to chime in please do...

Thanks,
RK

Greg

If [Quantity], [Detail Target], [Detail Threshold Poor] are not in the crosstab you may have to select them from the "Properties" property of the calculated expression that you added to the crosstab.  Click on the column header for that expression then click the ellipsis next to the Properties property in the properties pane and select the above 3 query items.  Click ok and try running your report.