Alternative Color Rows

How to add 2 different colors for alternative rows in a report?

Questions by vannur_basha

Showing Answers 1 - 2 of 2 Answers

santhosh243

  • Jan 12th, 2011
 

You must use mod function along with style variable to set the alternative
colors in rows.
First do a mod function for row number.
Then create a style variable with two values.
Apply the conditional style for even and odd row numbers.
That is it done.


by,
Santhosh


shashi

  • Apr 5th, 2017
 

by using mod(rownuber,3)=0 for 3 colours
mod(rownuber,2)=0 for 2 colours

  Was this answer useful?  Yes

cognos_anu

  • Jun 16th, 2017
 

You can create advanced conditional style having below expression :
mod(row number,2)=0 then you can assign first colour
mod(row number,2)=1 then assign second colour.
by this you will get alternate colours for object.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions