How to create a Ratio in Cognos Report studio Reports?
Answer / the_xxx
RATIO_TO_REPORT
This rank function calculates the ratio of a value to the
sum of the values for the entire set.
Syntax
RATIO_TO_REPORT( numeric )
Parameters
*
numeric-- Any numeric data type expression, typically
a reference to a numeric column.
Return Type
DOUBLE PRECISION.
Remarks
Returns a number for each row in the set that is the row’s
ratio to the sum of the entire set. When expression results
in NULL, the function returns NULL. When the sum of the set
is zero (0), the ratio is also zero.
Note: This function cannot be used as an argument in a set
function, moving set function, or rank function. For
example, SUM(RATIO_TO_REPORT(...)) is illegal.
Example
Determine what percentage each product sales is to the total
sales of all products for the last 20 weeks:
SELECT prod_description DESC,
SUM(dollars) as sales,
RATIO_TO_REPORT( SUM(
li_amount )) * 100 AS ratio_dollars
FROM lineitem, product
WHERE lineitem.li_prod_id = product.prod_id
GROUP BY prod_description;
DESC SALES RATIO_DOLLARS
Widget 896931.15 12.88
Basket 514830.00 7.39
Football 507022.35 7.28
Oil Drum 503493.10 7.23
Computer 437863.00 6.29
Chair 429637.75 6.17
Desk 424215.00 6.09
Mesh Bag 421205.75 6.05
Shoelace 417261.00 5.99
Powder 397102.50 5.70
Telephone 394086.50 5.66
Cord 392377.75 5.64
Mouse 389378.25 5.59
Monitor 305859.75 4.39
Case 294982.75 4.24
Cup 236772.75 3.40
| Is This Answer Correct ? | 2 Yes | 0 No |
1.Can we create a cube in a Transformer from multiple IQD's ?if so, how? 2.Also , explain some of the best practises used ,while creating a cube in powerplay transformer.
can any body clesrly explain about types of query subjects.that is data source query subject,model query subject,stored procedure query subjects?
what is report burn and where it occurs
what are the components having in the report studio using interface eg:insertable objects pan,properties pan
wht is the reason for using sql queries in the report 1. inorder drag the items to conatiner we can use use packages but wht is the neccessity of using sql queries to drag the items into the container
My problem is as follows I made two pages of the portal; in the first page i have two reports and from one of these i would like to communicate in some way (i.e drill- through?) with the second page that contains four reports (prompt value [product] and three chart [sales revenue, sales quantity and budget]). Particularly I would like to communicate with the report that contains the prompt, passing the Product. How can i drill from the first page of the portal to the second page ? More generally, is it possible to move from one page, containing 2 report, to another page with 4 report, through a drill-through or any other mechanism? Thank in advance.
What are the differences between Cognos 8 and Cognos 7.x version?
Can anyone tell me the step by step process how to connect cognos to oracle?
What is the complex report you faced in real time?
There are some reports,we have to provide security to that reports like the hr manager should have access to hr department reports only and the accountant should have access to accounts reports where as the CEO can have access to all the reports. How to deal with this situation using Cognos?
what are the names of the reports that you prepared?
diff b/w grouping and aggregation