Author Topic: Altenate Row Colors Problem  (Read 919 times)

Offline vsud

  • Community Leader
  • *****
  • Posts: 93
  • Forum Citizenship: +1/-6
Altenate Row Colors Problem
« on: 02 Jul 2006 03: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

Offline JGirl

  • Community Leader
  • *****
  • Posts: 153
  • Forum Citizenship: +13/-1
Re: Altenate Row Colors Problem
« Reply #1 on: 02 Jul 2006 11:14:56 pm »
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


Offline vsud

  • Community Leader
  • *****
  • Posts: 93
  • Forum Citizenship: +1/-6
Re: Altenate Row Colors Problem
« Reply #2 on: 03 Jul 2006 12: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


Offline mrcool

  • Statesman
  • ******
  • Posts: 265
  • Forum Citizenship: +27/-28
Re: Altenate Row Colors Problem
« Reply #3 on: 03 Jul 2006 04: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



Offline mrcool

  • Statesman
  • ******
  • Posts: 265
  • Forum Citizenship: +27/-28
Re: Altenate Row Colors Problem
« Reply #4 on: 03 Jul 2006 04: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



Offline vsud

  • Community Leader
  • *****
  • Posts: 93
  • Forum Citizenship: +1/-6
Re: Altenate Row Colors Problem
« Reply #5 on: 03 Jul 2006 04:50:26 am »
Hi,

Then what is the alternative for this?

vsud

Offline mrcool

  • Statesman
  • ******
  • Posts: 265
  • Forum Citizenship: +27/-28
Re: Altenate Row Colors Problem
« Reply #6 on: 03 Jul 2006 05:35:02 am »
Dnt u have anycolumn having sequence of numbers?If u are having use that column

Offline vsud

  • Community Leader
  • *****
  • Posts: 93
  • Forum Citizenship: +1/-6
Re: Altenate Row Colors Problem
« Reply #7 on: 05 Jul 2006 01: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