Hello, My dataset contains two column and ID column and a NumberOfCases columns. I'm calculating the percentage of each ID in the table by dividing each NumberOfcases by total numberOfCases. How ever I want to give a sum of these percentages in the Last row. How can I sum an expression in the table ?
The total of NumberOfCases is easy to get by having a sum on a field...But the percentage is not a field...It is calculated in an expresion in the table.
you can add a similar expression for totalrow to make it calculate over the dataset.use scope as dataset name when applying the required aggregate functions.
------------------------------------------------------------------------------------------------------ SQL Server MVP http://visakhm.blogspot.com/