COGNOiSe.com - The IBM Cognos Community

IBM Cognos Analytics Platform => Cognos Analytics => Reporting => Topic started by: cognos05 on 04 Sep 2017 01:25:32 PM

Title: sorting childrens pf a parent - dimensional reporting
Post by: cognos05 on 04 Sep 2017 01:25:32 PM
Hi,

I have a member called LATAM - NORTH and it has like 10 childrens. I want to always show Mexico as the first children. Is there a way to achieve this. Sort ascending or descending will not work here.

Descendants([LATAM-NORTH],1)
Title: Re: sorting childrens pf a parent - dimensional reporting
Post by: MFGF on 05 Sep 2017 02:55:15 AM
Quote from: nithya1224 on 04 Sep 2017 01:25:32 PM
Hi,

I have a member called LATAM - NORTH and it has like 10 childrens. I want to always show Mexico as the first children. Is there a way to achieve this. Sort ascending or descending will not work here.

Descendants([LATAM-NORTH],1)

Hi,

Your options for sorting members are essentially limited to the functionality the order() function gives you. This allows you to sort a set of members based on a value. Do your members have an attribute containing values in the correct sequence you would like to sort on? If so, you can use this in the order() function, but if not, you're not going to be able to do what you're asking.

MF.