Solved

Cognos 10.2.1 DQM and Crosstabs calculations

Posted on 2014-09-03
2
784 Views
Last Modified: 2014-09-10
I have the strangest thing happening in a Cognos 10.2.1 Fixpack 3 Report Studio report.  I have 2 queries that count male and female students (based on different criteria).  I am joining the 2 queries based on Gender and Term.  I am attempting to add the Male students (MSQ1 + MSQ2) together and female students (FSQ1 + FSQ2) together and list these totals in separate columns in the crosstab (Male Total / Female Total columns).  I created a new data item called Total by Gender ([Student_Count_Query1] + [Student_Count_Query2]) then I used this as the measure of my crosstab.  What I am seeing is the new data item (Total by Gender) is rendering a result that appears to be concatenating the values ([Student_Count_Query1] and [Student_Count_Query2]) together.  For example I have 1086 male students from Query 1 and 99 male from Query 2 and my Total by Gender for Male students shows as 108699 in the crosstab (the same type of result happens in the women's column as well).  I am not sure if I am doing something wrong with the changes that have been made when using DQM supported reports (because the above method works just fine when I run the same exact report using a CQM based version of the package).  Just wondering if anyone has seen anything like this and if so what did you do to get around it.  I am experimenting with some things (aggregation settings / data item expression, etc...) and have not had any success to this point.   Any ideas welcome.  Thanks.
0
Comment
Question by:ktQueBIT
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 

Accepted Solution

by:
ktQueBIT earned 0 total points
ID: 40315634
Found the solution.  I ended up having to cast the my count based data items as integers.  Then the combined data item I used as the crosstab metric added the values instead of concatenating them in the display.  

EXAMPLE:

Base Count object data item definition

cast ([Athlete Count] , integer)
cast ([Non-Ath Count], integer)

Combined count data item definition

[Athlete Count] + [Non-Ath Count]

Once this casting change was added the crosstab calculated the measures correctly.
0
 

Author Closing Comment

by:ktQueBIT
ID: 40315637
This was the solution I was looking for and learned a little about how crosstabs work using DQM enabled packages (much different that CQM versions of Cognos).
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

691 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