You are on page 1of 4

12/25/14

Cognos Concepts: Stitch Query in Cognos Reporting Explained | Perficient IBM Blog
About | Careers | Investor Relations | Contact

Solutions & Services

Partners

Products

Industries

Thought Leadership

Home / Thought Leadership / Social Media / Blogs / Perficient IBM Blog

Perficient IBM blog

IBM
BPM and SOA
Business Analytics
Information Management

Cognos Concepts: Stitch Query in Cognos Reporting


Explained
by Ryan Johnson on May 17th, 2012
So what exactly does it mean when Cognos performs a stitch query? Lets start with a

Portal
Specialized IBM Training
IBM Blog

business scenario and question:


A Manager asks a Report Developer to provide a report showing a comparison between
Actual Sales and Forecast Sales for any years we have data.
But these measures come from two completely separate facts: the Forecast Fact and
Sales Fact. How would Cognos understand their relation to each other? To achieve this
Cognos uses a conformed dimension(s) (dimensions that occur in both facts) as a
common data point. Since the Manager has requested the attribute Year as the
granularity, we will use the dimension which Year is a part of: Time. The example below
shows how the Time dimension for each fact is used to bridge the two subject areas:

Follow Perficient IBM

Contributors
Pablo Sanchez

Karen McCracken
Gary Shepard
Kirupakaran Baskaran

Sulayman Otori
Soufiane Elhorma

Now that we have a way to relate the two facts, lets create an actual report. The Report
Developer is going to create a list report by dragging on three items:

Year | Actual Sales | Forecast Sales


Behind the scenes, Cognos will need to first perform a query for each fact separately to

Sivaraman Baskar

retrieve each year/measure combination:

Pradeep Batchu
blogs.perficient.com/ibm/2012/05/17/cognos-concepts-stitch-query-in-cognos-reporting-explained/

1/4

12/25/14

Cognos Concepts: Stitch Query in Cognos Reporting Explained | Perficient IBM Blog

Stephanie Banks

Mwandama Mutanuka

Recent Posts
Integrating IBM
Integration Bus with
DataPower XC10
(REST APIs)
Anatomy of a Complex
Fraud Scheme
Apply an OOAD
approach to the TOAGF
ADM
Cyber Intrusions are
Rapidly Reaching a
Tipping Point. Have
You?
Topic Publish
Subscribe Using IBM
Integration Designer 8.5

Cognos will then stitch the two queries together on the common Year data points with a
third stitch query, displaying this to the user:

From a technical standpoint Cognos is performing a full outer join between the queries.
This can also be done using measures from multiple facts. While seemingly simple to

Categories
5010 (11)
ADM (2)
Best Practices (9)
BPM and ILOG (17)
Business Analytics (37)
Cast Iron (5)
Cloud (15)
Commerce (16)
Content Management
(12)
Content Navigator (1)
Contracts Management
(3)
Data Governance (12)
Datacap (1)
DataPower (24)
DB2 (10)
Education (12)
HIPAA (12)
IBM Content Manager
(1)
IBM Counter Fraud
Management (1)
IBM FileNet P8 (2)
IBM Healthcare (19)
IBM i2 (1)
IBM Jobs (3)
IBM Sterling (10)
Industry Pack (10)
Message Broker (13)
Mobile (15)
MQ (6)
News (130)
Portals and
Collaboration (26)
pub/sub (6)
salesforce.com (1)
SOA and Integration
(22)

the user, behind the scenes Cognos does the heavy lifting and gets surgical with stitch
queries.
Tags: Cognos, ibm, Report Studio, Stitch Query
This entry was posted on Thursday, May 17th, 2012 at 3:46 pm and is filed under Business Analytics.
You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave
a response. Pinging is currently not allowed.

6 thoughts on Cognos Concepts: Stitch Query in Cognos


Reporting Explained

1.

Ramu November 8, 2014 at 11:47 pm


Excellent Explanation.
Reply

2.

vedika March 12, 2014 at 2:22 am


Hi
Its very nice explanation.Thanks for helping
Reply

3.

jilani December 28, 2012 at 12:35 pm


One ore Doubt in Stched Query it applys full outer join is it not possible to apply
left or right join in FM to that two fact tables and date dim table then wt happen
exatly explain plzz
Reply

4.

khalid Nazeer October 9, 2012 at 12:36 pm


Hi
Ryan great explanation this is the most common questions
in BI interviews, keep helping Developers
Thanks
khalid
Cognos Consultant

blogs.perficient.com/ibm/2012/05/17/cognos-concepts-stitch-query-in-cognos-reporting-explained/

2/4

12/25/14

Cognos Concepts: Stitch Query in Cognos Reporting Explained | Perficient IBM Blog

SOA Governance (2)


Social Business (25)
TOGAF Modelling (2)
WMB (10)
Worklight (6)
WTX (8)
XC 10 (3)
XC 10 (3)
XI 52 (3)
XML (9)

Dallas TX
Reply

1.

Ryan Johnson Post authorOctober 18, 2012 at 5:29 pm


Thanks for the comment Khalid. More Cognos Concepts to come!
Reply

1.

jilani December 28, 2012 at 12:28 pm


very good explanation with example and wt is the role actual role of

Subscribe to Emails
Your email:

colesalec function in stiched query

Leave a Reply

Enter email address...


Subscribe Unsubscribe

Subscribe to RSS feed


RSS Feed
Archives
Select Month

Email (required)

Tags

(Address never made public)

Name (required)

5010 architecture big

data bpm business


intelligence Cloud
Cognos Cognos TM1
commerce costing Data

Notify me of new comments via email.

Governance data

Notify me of new posts via email.

governance model

Website

Post Comment

DataPower datastage
demand planning ecm

Educaiton

enterprise data governance


model esb finance global data
governance model HIPAA

Delivering IBM Exceptional Web Experiences


2012 IBM Exceptional Web Experience Conference General Session

ibm ibmimpact IBM


Integration Bus IBM Message

IBM SPSS
Statistics infosphere
Broker

Integration knowledge

Master Data
Governance Message broker
lombardi

monte carlo simulation MQ


Organizational Data Model

Predictive Analytics
smarter planet SOA
Social Business Statistics
strategic planning TM1
WebSphere websphere
message broker

Follow @Perficient_IBM

Follow IBM Technologies


on Pinterest
blogs.perficient.com/ibm/2012/05/17/cognos-concepts-stitch-query-in-cognos-reporting-explained/

3/4

12/25/14

Cognos Concepts: Stitch Query in Cognos Reporting Explained | Perficient IBM Blog

Follow Perficient Inc's board


IBM TECH on Pinterest.

2014 Perficient, Inc. All rights reserved. | Investor Relations | Careers | About | Contact | Site Map | Privacy Policy

blogs.perficient.com/ibm/2012/05/17/cognos-concepts-stitch-query-in-cognos-reporting-explained/

4/4

You might also like