Hi All,
I am using CR XI R2, and have a crosstab with percent. I would like the percent to show with values upto 2 decimals.
Total va md
Total 1,631 100% 1,352 82% 13 0%
IM 59 100% 58 98% 0 0%
Phone 926 100% 690 74% 10 1%
VM 20 100% 13 65% 0 0%
WC 70 100% 64 91% 0 0%
Fax 556 100% 527 94% 3 0%
My totals are counts and I used the sugessions by Lbass of using the following :
For the va and md colums I use
whileprintingrecords;
numbervar curr := currentfieldvalue;
false
For the total column I used
whileprintingrecords;
numbervar tot := currentfieldvalue;
false
So that should store values 1631,59,936,20,70,556 in the tot variable
And for the % values I used,
whileprintingrecords;
numbervar tot;
numbervar curr;
totext(curr%tot,2)+"%" //2 for 2 decimal
But this seems to store 556 as the total all the time. What am I doing wrong?
Thanks for your help in advace,
s.
I am using CR XI R2, and have a crosstab with percent. I would like the percent to show with values upto 2 decimals.
Total va md
Total 1,631 100% 1,352 82% 13 0%
IM 59 100% 58 98% 0 0%
Phone 926 100% 690 74% 10 1%
VM 20 100% 13 65% 0 0%
WC 70 100% 64 91% 0 0%
Fax 556 100% 527 94% 3 0%
My totals are counts and I used the sugessions by Lbass of using the following :
For the va and md colums I use
whileprintingrecords;
numbervar curr := currentfieldvalue;
false
For the total column I used
whileprintingrecords;
numbervar tot := currentfieldvalue;
false
So that should store values 1631,59,936,20,70,556 in the tot variable
And for the % values I used,
whileprintingrecords;
numbervar tot;
numbervar curr;
totext(curr%tot,2)+"%" //2 for 2 decimal
But this seems to store 556 as the total all the time. What am I doing wrong?
Thanks for your help in advace,
s.