If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Ranking nested rows

Started by cognos05, 13 Feb 2015 02:50:33 PM

Previous topic - Next topic

cognos05

I have a Region and then EMployees under the region.

My column rank has the expression
Rank(currrentMeasure within set(Employees))

this ranks my all employees across all regions. I wan them to rank employees between their regions.

How should my expression look like,

Thanks,
Nithya


cognos05

Now the ranking is done based on  employees with all regions. But since I have nested employees under region.i wanted to rank the employees with respect to each region. can you guys let me know how to achieve this ..

thanks,
Nithya

bdbits

I am pretty sure you need to change your expression from using set(Employees) to the set() corresponding to the region.

cognos05

I did that and its not working.

MFGF

Quote from: nithya1224 on 20 Feb 2015 07:28:43 AM
I did that and its not working.

What does "its not working" mean?

MF.
Meep!

cognos05

Hi MFGF,
its not ranking it based on the employees with in regions.
IBM suggested the below code
rank(rank(currentmeasure within set ([Employee])) ASC for [Region])
but even this would work if I have only column and a measure.

Say if I have two columns like ytd and pytd and apply this then rank would not work.

WOuld not work is result being some random numbers ranked.

Thanks,
Nithya