COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: u2sukumar on 30 Dec 2010 11:42:30 AM

Title: ABOUT CONDITIONAL FORMATING
Post by: u2sukumar on 30 Dec 2010 11:42:30 AM
i have a question about conditional formating i.e.
Eg: the data items are in a query subject
      - orderyear
      - ordermethod and
      - quantity

i applied group on orderyear and total on quantity.
now i want highlight the maximum quantity for each ordermethod.
Title: Re: ABOUT CONDITIONAL FORMATING
Post by: PRIT AMRIT on 04 Jan 2011 01:07:06 AM
If i got your question correctly, you mean u want to see the Max(Quantity) for the ordermethod irrespective of the 'Order Year' group? If yes, see below

create a Data Item e.g.

Max(Ordmethod):
Expression: maximum(total([Quantity]) for [ordermethod])

Conditional Style Properties:
[Quantity]=Max(Ordmethod)

Then 'Back Ground Color' is 'Red'

If you want to see Max quantity for Ordermethod for Orderyear group then the expression would be

maximum(total([Quantity]) for [ordermethod],[orderyear])

Hope it works for you.

Thanks
P