COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: inu on 03 Aug 2014 08:07:31 AM

Title: How to highlight the rows sequentially with different colour & it should repeat
Post by: inu on 03 Aug 2014 08:07:31 AM
HI guys,
I have a report with hundreds of records. I want to highlight first 3 rows with red colour, second 3 rows with blue color, third 3 rows with green color. On further, for other rows, again it should repeat from the first ('red'), then second ('blue') and so on untill the end of the records.'

Is it possible to develop this report .

Please share the ideas!!!!!!!!!!!!!!!!!!

Cheers !
Inam
Title: Re: How to highlight the rows sequentially with different colour & it should repeat
Post by: MFGF on 03 Aug 2014 11:57:43 AM
Quote from: inu on 03 Aug 2014 08:07:31 AM
HI guys,
I have a report with hundreds of records. I want to highlight first 3 rows with red colour, second 3 rows with blue color, third 3 rows with green color. On further, for other rows, again it should repeat from the first ('red'), then second ('blue') and so on untill the end of the records.'

Is it possible to develop this report .

Please share the ideas!!!!!!!!!!!!!!!!!!

Cheers !
Inam

Hi,

Add a query calculation with the expression

mod(floor((running-count ([a unique data item for each row]) -1) / 3),3)

You can then define a conditional highlight based on the results

Cheers!

MF.
Title: Re: How to highlight the rows sequentially with different colour & it should repeat
Post by: inu on 04 Aug 2014 02:23:24 AM
Quote from: MFGF on 03 Aug 2014 11:57:43 AM
Hi MF,
Thanks a lot, u r great

cheers !
inam