COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: Dineshpullagura on 04 Feb 2015 10:49:30 AM

Title: Getting a cross join of all the dimension attributes in a list report
Post by: Dineshpullagura on 04 Feb 2015 10:49:30 AM
This is the scenario,

I have a case which has the following dimensions, Case Identifier,Case Owner, Case Status, Case Creation Date, Case Resolution Date. I am trying to create a list which displays all the dimension attributes like

Case Identifier | Case Status | Case Owner | Case Creation Date | Case Resolution Date

I have my fact table which links all these dimension keys..

My goal is to show all these attributes for each and every case, but when i am trying to add all these to a list in a report, i am getting a cartesian join of all the dimension attributes.

Please suggest what could be the problem.

Thank you for your time.
Title: Re: Getting a cross join of all the dimension attributes in a list report
Post by: Robl on 04 Feb 2015 11:00:45 AM
It sounds like you need to either;

Add in some dummy data for 0 values in the database.
Use a cube.
Create a query subject for the full structure, another for the data, outer join them in the report.

It depends on whether this is a one-off problem or an ongoing requirement, and just how much data you're talking about.
Title: Re: Getting a cross join of all the dimension attributes in a list report
Post by: Dineshpullagura on 04 Feb 2015 12:09:38 PM
HI,

I am building this report using cube as the data source. The data is just around 10000 rows.
Title: Re: Getting a cross join of all the dimension attributes in a list report
Post by: MFGF on 04 Feb 2015 12:22:37 PM
Quote from: Dineshpullagura on 04 Feb 2015 10:49:30 AM
I have my fact table which links all these dimension keys..

Having a fact table implies you're reporting off a data warehouse?

Quote from: Dineshpullagura on 04 Feb 2015 12:09:38 PM
I am building this report using cube as the data source. The data is just around 10000 rows.

Here you say you're reporting off a cube. Which is true? Data Warehouse database or cube?

You need to bring in at least one measure to be able to avoid the issues you are experiencing. I'd also humbly suggest that a cube is not an ideal choice of data source for reports like this (if you are using a cube, that is). Cubes are not optimised to allow efficient list-style reporting - this kind of report would be much better served from a relational source.

MF.
Title: Re: Getting a cross join of all the dimension attributes in a list report
Post by: Dineshpullagura on 04 Feb 2015 12:30:51 PM

I apologize for the confusion. My data source for report is a cube built on top of a star schema using cognos dynamic cube designer. I am trying to replicate a report built on relational tables using cube.

Title: Re: Getting a cross join of all the dimension attributes in a list report
Post by: Robl on 04 Feb 2015 12:37:13 PM
Oh, it's quite simple then.

Just bring in a measure, something like 'case count' and then supress zeros and missing values.
Title: Re: Getting a cross join of all the dimension attributes in a list report
Post by: Dineshpullagura on 04 Feb 2015 12:43:03 PM
I tried bringing in a measure, but i am getting missed values. Is there a way to suppress the missed values.

And as per my report requirement i need to show only those attributes without any measure.


Thank you.   
Title: Re: Getting a cross join of all the dimension attributes in a list report
Post by: Dineshpullagura on 04 Feb 2015 12:53:11 PM
Thanks a ton for the help. I am using filter expression to suppress the missed values.