COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: anjidwh.cognos on 07 Jan 2014 06:19:09 AM

Title: How to shad Background color of the list for every 4 rows
Post by: anjidwh.cognos on 07 Jan 2014 06:19:09 AM
Hi All,

I have list with N-number of records, for the first 4 rows i have to shade the background color in the following way.

1 row - red, 2 row - blue, 3 row - green, 4 row - yellow, similary first next 4 rows also the colors should repeat and so on.

In this way for every four rows the background color format should applicable.

Can anyone helpme out how to achieve this part. Appriciated your help!!

Thanks,
SR
Title: Re: How to shad Background color of the list for every 4 rows
Post by: CognosPaul on 07 Jan 2014 01:44:50 PM
string style/conditional style with mod(RowNumber(),4)

1=color 1
2=color 2
3=color 3
0=color 4