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

How to compare data items

Started by barrysaab, 22 Sep 2014 08:05:48 AM

Previous topic - Next topic

barrysaab

Hi Folks,I have two data items namely Type and Amount,In Type there are type1 and type 2 so on,I need to compare

type=1 total amount > type=2 total amount,How to do this,thanks in advance.
Boy! Cognos getting on to me!!!

BigChris

Would something like this work:

total(if([Type] = 'Type 1') then ([Amount]) else (0)) > total(if[Type] = 'Type 2') then ([Amount]) else (0))

You might need to play around with before or after aggregation...but it might work.

barrysaab

Thanks BigChris,It did worked.Apologies for delayed response.
Boy! Cognos getting on to me!!!