This report pulls out all records in a set. Only the top 25 of those is to be displayed.
All of that is working fine.
What I need on top of that is the percentage of
Sum(Top 25) / Sum(All)
To get the Top 25, I have a ranking field from the Universe. When that is > 25, I merely assign a value of zero, otherwise the value I want to sum.
Not sure if it's making ANY difference, but, there are 5 sections in the report.
In GF5 I can see Sum(All) & Sum(Top 25), all perfectly, both as a total, as well as a variable.
Now, when I create a variable that is nothing more than Sum(Top 25, GF5) / Sum(All, GF5) I get a value returned of 0.0000.
I thought maybe it was something to do with the numbers, so I manually created a variable with the values of Sum(Top 25) & Sum(All) in it & the result is correct, 0.18 in this case, or 18%.
I'm at a loss on this & would appreciate a little direction if anyone has some thoughts.
This is being developed in Crystal 2008 on an XIR3 Universe against SQL Server 2005.
Thanks,
Peter.
All of that is working fine.
What I need on top of that is the percentage of
Sum(Top 25) / Sum(All)
To get the Top 25, I have a ranking field from the Universe. When that is > 25, I merely assign a value of zero, otherwise the value I want to sum.
Not sure if it's making ANY difference, but, there are 5 sections in the report.
In GF5 I can see Sum(All) & Sum(Top 25), all perfectly, both as a total, as well as a variable.
Now, when I create a variable that is nothing more than Sum(Top 25, GF5) / Sum(All, GF5) I get a value returned of 0.0000.
I thought maybe it was something to do with the numbers, so I manually created a variable with the values of Sum(Top 25) & Sum(All) in it & the result is correct, 0.18 in this case, or 18%.
I'm at a loss on this & would appreciate a little direction if anyone has some thoughts.
This is being developed in Crystal 2008 on an XIR3 Universe against SQL Server 2005.
Thanks,
Peter.