Hi All,
I have a CR 10 (Developer Edition) cross tab that displays the "Count" of some field in my table (I'm reporting off a SQL Server database, using Visual Studio .NET with C#). Instead of displaying the "Count" summary, I would like my cross tab to show that Count divided by 3. Actually, the Count would not be divided by the constant 3, but it would be divided by some variable that is subject to change in each column of the cross tab (and it's likeyly to be 3). How do I go about doing that?
I tried adding a formula, called MyFormula, that looks like this:
Count({MyTable.MyField})/3;
But, this approach suffers from two shortcomings. (1) I'm always dividing by 3 and I should divided by the number of times that the column value appears in the Row value. (2) When I add this to the Summary fields of the Cross Tab, the Cross Tab says "Sum of @MyFormula". When the cross tab prints, I get numbers that are way too large. I'm expecting to get numbers no greater than 60. When the cross tab prints, I get data in the millions, like 7,866,765.
Can anybody help me out?
Thanks!
JC
I have a CR 10 (Developer Edition) cross tab that displays the "Count" of some field in my table (I'm reporting off a SQL Server database, using Visual Studio .NET with C#). Instead of displaying the "Count" summary, I would like my cross tab to show that Count divided by 3. Actually, the Count would not be divided by the constant 3, but it would be divided by some variable that is subject to change in each column of the cross tab (and it's likeyly to be 3). How do I go about doing that?
I tried adding a formula, called MyFormula, that looks like this:
Count({MyTable.MyField})/3;
But, this approach suffers from two shortcomings. (1) I'm always dividing by 3 and I should divided by the number of times that the column value appears in the Row value. (2) When I add this to the Summary fields of the Cross Tab, the Cross Tab says "Sum of @MyFormula". When the cross tab prints, I get numbers that are way too large. I'm expecting to get numbers no greater than 60. When the cross tab prints, I get data in the millions, like 7,866,765.
Can anybody help me out?
Thanks!
JC