SUM the rows related with a expression box in SSRS 2008

All,

Im stumped. How can I sum up the rows below in a table in SSRS where it involves a textbox expression? See image.

I tried using SUM(ReportItems!Textbox1.Value), but I get an error saying that it can only work if its on a header or footer.

Please someone help! I cannot change the layout so I have to try to fit it in this design.

The circle box is where the total should be for the items in the table below in SSRS 2008.

Thanks in advance!Untitled.png
teknovationAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

teknovationAuthor Commented:
anyone?!
teknovationAuthor Commented:
anyone?!
Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
how's your SQL statement looks like? if you can't change the design we may need to use a union clause in your SQL statement so that we can append the "total" at the top or bottom of the detailed records
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Vitor MontalvãoMSSQL Senior EngineerCommented:
Like the error says the SUM only works on a header or footer section.
If you can't change you need to work out the sql server query to return that value for your report.
teknovationAuthor Commented:
no sql involved. only fetch xml for dynamic crm
teknovationAuthor Commented:
Thanks Vitor...found this link seems to be identical to what I'm trying to achieve, however it cannot sum the expression textbox correctly.

 Similiar solution, close but no cigar
Vitor MontalvãoMSSQL Senior EngineerCommented:
That solution is what I was talking about: changing the sql query so it brings the SUM result.
teknovationAuthor Commented:
There are no sql attachment, only FETCH XML with SET expressions.
teknovationAuthor Commented:
When trying to sum the columns with a sum function, this is the actual error:

The Value Expression for the text run "TotalSum.Paragraphs[0]' uses an aggregate function on an report item. Aggregate function can be used only on report items contained in page headers and footers.
teknovationAuthor Commented:
Please close this issue - no resolution was provided by EE experts here.

I figured it out, adding a row below the child group and then reference it at the parent level using ReportItems!Label1.Value.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
teknovationAuthor Commented:
No solution was provided by anyone else
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
SSRS

From novice to tech pro — start learning today.