COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: Cognos_World on 10 May 2012 03:02:05 PM

Title: Multiple rows in a single row after join
Post by: Cognos_World on 10 May 2012 03:02:05 PM
I want to get a single row from multiple rows after 2 tables are joined. I have a condition based on date.
If date1 = date 2 then date1 else null.
This is giving multiple rows and these are required in the report.

Is there any way to get the data in a single row.

E.g

100   
           200

Result:

100     200

I have tried various aggregations, that didn't helped.

Any workarounds?


Title: Re: Multiple rows in a single row after join
Post by: pricter on 11 May 2012 03:08:51 AM
Have you tried to use a repeater?
Title: Re: Multiple rows in a single row after join
Post by: bi4u2 on 18 May 2012 08:14:04 AM
If you create the query subject in Framework Manager based on your requirement, you can change the Options on SQL from 'Minimized SQL' to 'As a View'. This would put everything on one row.
Title: Re: Multiple rows in a single row after join
Post by: Lynn on 18 May 2012 08:34:22 AM
What aggregations did you try? I'd think a maximum on the date item and total for the measures would have done the trick.

Or try a query reference so that your base query with the multiple rows is feeding into another query, then set the aggregation on the query items in the new query. This would introduce local processing so beware of performance implications.