Solved

Cognos 8 report studio

Posted on 2011-09-29
4
1,156 Views
Last Modified: 2012-05-12
It am trying to write a report using Cognos 8 report studio. I am trying to add a data item in the query section to show the total for two grouping at once, and am having a hard time to get the proper results.

For example I want total sales by region and the by sales person, I can have the report show this,but I am trying to get it in an actual data item so I can run other calculations off of it.

I am trying to use the total function and can get the total for one or the other but not both

Thank You
0
Comment
Question by:tjc1978
4 Comments
 
LVL 8

Accepted Solution

by:
SNeupane earned 500 total points
ID: 36816847
Use total with for clause.
For example, for sales by region:
Total ([Sales] for [Region])

For person:
Total ([Sales] for [Person])

This limits the total for the data item after the for clause.
0
 

Author Comment

by:tjc1978
ID: 36891288
Thank you for your response. I found the answer by trial and error. I was looking for two groupings in one. here is the formula

Total([Sales] for [Region], [Person])
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 37068397
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1. Set up your parameter at the report level as usual, check the box Multi-value, and set the Data Type to String 2. Set the Stored Procedure Parameter to varchar(max)  --<---- This part here is the key to it's success Example:    @cst_key var…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question