Cognos Cross-tab Report Studio Report Ungroup Items to display as list on every line
I recently had a requirement where the user wanted data from an existing Crosstab report to repeat every line so he can use the output in excel for comparison/analysis. It must be an old trick for most of us as I see so many posts around but none of them are straight forward and are hard to follow so i thought why not log it here, besides its only been 10 months since I shared anything. Sorry guys I'm in support right now so no time to explore new tips and tricks or maybe i'm being lazy ;)
By default Crosstab groups columns nested based on the position on the cross tab, the trick here is to identify your lowest and highest level of data granularity.
Lets pick the below crosstab as an example with PRODUCT, DESCRIPTION, LOCATION as nested dimension columns and default measure of SALES $ across MONTHS.
Measure: Sales $ MONTH 1 | MONTH 2 ....................................
Product | Description | Location | $10 $20
Cognos groups PRODUCT, DESCRIPTION, LOCATION and the Group/ Ungroup option doesnt work here in Report Studio, so the trick to have the lowest and highest data in one single data item in the crosstab and not display it.
Step 1: Go to Crosstab Query and create a new Data Item ([Product]+[Description] + [Location]) call it
UNGROUP
Step 2: Drag this Data Item(UNGROUP) and replace Product on the crosstab.
Step 3: Now Unlock the report from the Unlock option on upper left hand side of Report Studio.
Step 4: Click on UNGROUP and make sure only the Text Item(UNGROUP) is selected.
Step 5: Now change the Source Type from Properties pane to Data Item Value( If it is a Memner Caption)
and Data Item Value to Product.
Step 6 : Now run the report and see the magic.
I tested this in 8.4 and should work in Cognos 10 too.
If I don't do another post this year i wish you a Happy New Year and Happy Holidays!!!
By default Crosstab groups columns nested based on the position on the cross tab, the trick here is to identify your lowest and highest level of data granularity.
Lets pick the below crosstab as an example with PRODUCT, DESCRIPTION, LOCATION as nested dimension columns and default measure of SALES $ across MONTHS.
Measure: Sales $ MONTH 1 | MONTH 2 ....................................
Product | Description | Location | $10 $20
Cognos groups PRODUCT, DESCRIPTION, LOCATION and the Group/ Ungroup option doesnt work here in Report Studio, so the trick to have the lowest and highest data in one single data item in the crosstab and not display it.
Step 1: Go to Crosstab Query and create a new Data Item ([Product]+[Description] + [Location]) call it
UNGROUP
Step 2: Drag this Data Item(UNGROUP) and replace Product on the crosstab.
Step 3: Now Unlock the report from the Unlock option on upper left hand side of Report Studio.
Step 4: Click on UNGROUP and make sure only the Text Item(UNGROUP) is selected.
Step 5: Now change the Source Type from Properties pane to Data Item Value( If it is a Memner Caption)
and Data Item Value to Product.
Step 6 : Now run the report and see the magic.
I tested this in 8.4 and should work in Cognos 10 too.
If I don't do another post this year i wish you a Happy New Year and Happy Holidays!!!
Thanks so much for the helpful info! came in at right time! Cognos Training | Online Training
ReplyDeleteThis blog is very helpful for beginners and experts also, thanks for sharing it. Keep share content on MSBI Online Training
ReplyDelete