SSRS 2008 - How to SUM a FIRST() in a MATRIX?

Experts,

Why is something that should be so easy be so difficult?

Is there a way to SUM a FIRST() in a MATRIX cell? I have a column of data that is displaying the First(Fields!Annual_Spend.Value, "DataSet1"). I simply need to SUM this column of FIRST's...what's the trick..?????

Any ideas?

Thanks
M
LVL 17
MIKESoftware Solutions ConsultantAsked:
Who is Participating?
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.

sammySeltzerCommented:
As far as I know, =sum(first()) is same as SUM(DISTINCT) in sql server.

So, why not do this in sql query so you won't have to worry about it in report designer?

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
_bmendozaCommented:
can you explain further like which column is used for matrix row group and column group? and how you want the data to be computed? (sample data from dataset also)
MIKESoftware Solutions ConsultantAuthor Commented:
bmendoza - I can explain more, but it's a little complicated. I think if I can simply understand for certain that I will NEVER be able to SUM the FIRST() function, then that will tell me at this point, what I need to know and how to proceed.

I use quite a few reporting products out on the market. (ie. Crystal Reports, Business Objects XI, Microstrategy, etc...) Most of these products are able to handle these types of summaries, but SSRS doesn't seem to have an easy solution...?

Is there perhaps a VARIABLE type of function, that I don't know about that I can store a value of a GROUP and summarize it.., then display the SUM at certain intervals of the report,or certain Group Footers..???

Exploring SQL Server 2016: Fundamentals

Learn the fundamentals of Microsoft SQL Server, a relational database management system that stores and retrieves data when requested by other software applications.

MIKESoftware Solutions ConsultantAuthor Commented:
Also,...report needs to be in a Matrix due to the columns need to be dynamic based on a change in Supplier Name.
_bmendozaCommented:
have you tried combination of list and matrix? (matrix inside a list maybe)
MIKESoftware Solutions ConsultantAuthor Commented:
Had to use First() function and group footer to display the correct amount in the cell, then created another SQL query to provide the SUMs.

Exported to Excel to manually test all summaries in Excel.....

Worked for me,...not the most efficient what to handle though, but all that SSRS could provide....
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.