COGNOiSe.com - The IBM Cognos Community

Legacy Business Intelligence => COGNOS ReportNet => Report Studio => Topic started by: vsudaya on 02 Jul 2006 04:37:30 AM

Title: Altenate Row Colors Problem
Post by: vsudaya on 02 Jul 2006 04:37:30 AM
Hi all,

I am implementing alternate row colors in a report using conditional style, its working fine. i am doing dynamic sorting on a particular coloumn(asc,desc). the code is given below. but whenever sales voume number is continuosly same when i ascend or descend. the alternate row color is not working, its pading with same color, i tried with rank function also. how to over come this issue.

mod(running-count(sales_volume),2)


any thoughts?

Thanks in advance
vsud
Title: Re: Altenate Row Colors Problem
Post by: JGirl on 03 Jul 2006 12:14:56 AM
Try using mod(running-total(1 for report),2) and applying your conditional fomatting on this.  This should always increment the total by 1 for each record.

J

Title: Re: Altenate Row Colors Problem
Post by: vsudaya on 03 Jul 2006 01:04:12 AM
Hi,

Its not giving the number sequence continuos, the problem i am using dynamic sorting. If i take it for report, the sequence is not coming to set the mod function.

thanks in advance
vsud

Title: Re: Altenate Row Colors Problem
Post by: mrcool on 03 Jul 2006 05:31:58 AM
Hi...that function works fine on only columns having contineous r number sequence like primary key column....if the value repeats in the column u wont get alternate colors


Title: Re: Altenate Row Colors Problem
Post by: mrcool on 03 Jul 2006 05:34:10 AM
Hi...that function works fine on only columns having contineous r number sequence like primary key column....if the value repeats in the column u wont get alternate colors


Title: Re: Altenate Row Colors Problem
Post by: vsudaya on 03 Jul 2006 05:50:26 AM
Hi,

Then what is the alternative for this?

vsud
Title: Re: Altenate Row Colors Problem
Post by: mrcool on 03 Jul 2006 06:35:02 AM
Dnt u have anycolumn having sequence of numbers?If u are having use that column
Title: Re: Altenate Row Colors Problem
Post by: vsudaya on 05 Jul 2006 02:08:51 AM
Hi all,

this function working for me mod(running-total(1 for report),2) , but when do ascending on sales_volume(dynamically) from report viewer, the running-total sequence is not coming perfectly when we have same value like '0'. it is missing the seuqnce after 1,2,3,11,4,5,6,7,8 etc its giving.

thanks in advance
vsud