COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: SynexusStuart on 04 Jun 2015 11:11:30 AM

Title: Sorting second node in crosstab
Post by: SynexusStuart on 04 Jun 2015 11:11:30 AM
Ok, this is a basic one but I've been having a brain fade...

I have data in a crosstab as follows:

          |   Region 1    |   Region 2     |
          | Pr(a) | Pr(b) | Pr(b) | Pr(a)  |
Row1 |   5     |    2    |   8     |   6     |
Row2 |   7     |    2    |   5     |   3     |
Total  |   7     |    2    |   5     |   3     |

Sorting the rows is fine. I have a sort on the Regions as well but when I try and sort on the Products (so that (a) appears before (b)) it won't work. - Basically (b) sometimes comes before (a).

I am sorting on that level (so i am not trying to sort both nodes from the Region level)

I have tried to add a sorting data item to the properties of the region level and use that but I get the same result. Can't work it out.

Anything obvious???

Thanks
Title: Re: Sorting second node in crosstab
Post by: CognosAnalytics on 04 Jun 2015 01:18:45 PM
Hello SynexusStuart,
Not sure, if I got what you want to achieve, but have you added the sorting for the Product data item? Bascially, selecting the Node Member corresponding to Product, and then from the properties pane, add the sorting on Product.

-Cognos810
Title: Re: Sorting second node in crosstab
Post by: SynexusStuart on 05 Jun 2015 06:54:08 AM
Quote from: cognos810 on 04 Jun 2015 01:18:45 PM
Hello SynexusStuart,
Not sure, if I got what you want to achieve, but have you added the sorting for the Product data item? Bascially, selecting the Node Member corresponding to Product, and then from the properties pane, add the sorting on Product.

Yes, that is set on the product data item. I can even see the ^ next to <#Product#> item.
Title: Re: Sorting second node in crosstab
Post by: MFGF on 05 Jun 2015 07:12:29 AM
Quote from: SynexusStuart on 05 Jun 2015 06:54:08 AM
Yes, that is set on the product data item. I can even see the ^ next to <#Product#> item.

Hi Stuart,

How have you defined the sorting? Did you use the "Sort by label", "Sort in Layout", "Edit Set Sorting" or Edit Layout Sorting" option?

It is a dimensional or relational package?

Cheers!

MF.
Title: Re: Sorting second node in crosstab
Post by: SynexusStuart on 08 Jun 2015 09:52:08 AM
Edit Layout Sorting.

Relational.
Title: Re: Sorting second node in crosstab
Post by: MFGF on 08 Jun 2015 10:10:31 AM
Quote from: SynexusStuart on 08 Jun 2015 09:52:08 AM
Edit Layout Sorting.

Relational.

Hmmm. Ok. Not seeing anything obvious there. Do you have anything funky going on in your query? What happens if you build a new report with a simple crosstab from scratch and apply sorting on just Region then Product? Does that work? If not, can you replicate the problem using a sample package?

MF.