Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Reporting Services Development
 Need column Totals but VS complains Aggregate Func

Author  Topic 

simpleton
Starting Member

25 Posts

Posted - 2010-03-04 : 10:37:37
I have a report that calculates correctly, but I can’t get the rows to total. Visual Studio complains about Aggregate Functions.

I have no idea how to fix this, and get my totals.
Here are my crazy formulas I’m using to get the column data.

Column C = B/SumOfB
Column E = C*D
Column H = G/F*0.012
Column I = H*C


Any help would be most appreciated!!

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-03-04 : 11:11:33
why you cant total? all except column C has no aggregate functions so it should work fine. for C you might have to use hidden field with sum(b) and then use reportItems!textbox.value instead of direct SUM

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

simpleton
Starting Member

25 Posts

Posted - 2010-03-05 : 14:43:29
Seems like no matter how I ran Visual Studio, it would keep giving me Aggregate errors.
I ended up solving the problem by doing all the calculations in the SQL backend.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-03-06 : 02:18:11
whats version of visual studio you were using?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

simpleton
Starting Member

25 Posts

Posted - 2010-03-08 : 07:19:31
Visual Studio 2005 Professional
Go to Top of Page
   

- Advertisement -