SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 Sum Report Items
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

cipriani1984
Constraint Violating Yak Guru

United Kingdom
304 Posts

Posted - 12/19/2012 :  06:19:12  Show Profile  Click to see cipriani1984's MSN Messenger address  Reply with Quote
Hi,

I know SSRS 2008 R2 or any other version of SSRS doesnt allow it, but there must be a function or custom code I can write to allow me to sum all the report items.value in a group.

Has anyone come across this before and have code or explain how to write the code, handy?

Thanks

visakh16
Very Important crosS Applying yaK Herder

India
52320 Posts

Posted - 12/19/2012 :  08:09:59  Show Profile  Reply with Quote
you mean horizontally aggregating values? as by default you could simply use aggregate function with scope specified as your group to aggregate data vertically

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

Go to Top of Page

cipriani1984
Constraint Violating Yak Guru

United Kingdom
304 Posts

Posted - 12/19/2012 :  08:19:46  Show Profile  Click to see cipriani1984's MSN Messenger address  Reply with Quote
Well I did a sum(reportitems!box1.value) and ssrs doesnt like it.

Columns
Rows Value (Customer Forumla here)
Total Sum(Box above)



quote:
Originally posted by visakh16

you mean horizontally aggregating values? as by default you could simply use aggregate function with scope specified as your group to aggregate data vertically

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



Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52320 Posts

Posted - 12/19/2012 :  08:57:52  Show Profile  Reply with Quote
quote:
Originally posted by cipriani1984

Well I did a sum(reportitems!box1.value) and ssrs doesnt like it.

Columns
Rows Value (Customer Forumla here)
Total Sum(Box above)



quote:
Originally posted by visakh16

you mean horizontally aggregating values? as by default you could simply use aggregate function with scope specified as your group to aggregate data vertically

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






why do you nead to access it via reportitems? why can you fetch values from dataset?

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

Go to Top of Page

Matengele
Starting Member

Zambia
4 Posts

Posted - 01/01/2013 :  11:22:33  Show Profile  Reply with Quote
Hi,
under row groups, choose either the details group or an immediate child group of the group whose items you want to sum , click the drop down on the right of that group and select add total after.
Go to Top of Page

cipriani1984
Constraint Violating Yak Guru

United Kingdom
304 Posts

Posted - 01/08/2013 :  05:08:54  Show Profile  Click to see cipriani1984's MSN Messenger address  Reply with Quote
Because its a Analysis services dataset.

quote:
Originally posted by visakh16

quote:
Originally posted by cipriani1984

Well I did a sum(reportitems!box1.value) and ssrs doesnt like it.

Columns
Rows Value (Customer Forumla here)
Total Sum(Box above)



quote:
Originally posted by visakh16

you mean horizontally aggregating values? as by default you could simply use aggregate function with scope specified as your group to aggregate data vertically

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






why do you nead to access it via reportitems? why can you fetch values from dataset?

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



Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000