all groups > sql server reporting services > october 2007 >
You're in the

sql server reporting services

group:

Adding subreport values


Adding subreport values Jeppe Jespersen
10/26/2007 12:00:00 AM
sql server reporting services:
I have a _very_ simple table with just one row and three columns.

The first column of the row contains a subreport that retrieves a single
value.

The second column of the row contains a subreport that retrieves a single
value.

....and heres where I lose it... :-)

The third column should contain the sum of column1 and column2. Period.

Please help. Thanks :-)

jdjespersen

RE: Adding subreport values calton NO[at]SPAM online.microsoft.com
10/26/2007 6:15:03 PM
If all you are doing is returning one value from the sub-report then why
use the sub-report at all in the first place?

Secondly, you can't add two sub-reports together. Just because your
sub-reports only return one value does not mean that the main report will
see it as such. If you plugged a sub-report in to that area that returned
40 rows of data and then tried to add those together with another
sub-reports output what would you expect to see?

So in essence you can't do what you are trying to do since you can't
reference the subreport the way you are trying.

-------------------------------------
Chris Alton, Microsoft Corp.
SQL Server Developer Support Engineer
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
[quoted text, click to view]
Re: Adding subreport values calton NO[at]SPAM online.microsoft.com
10/26/2007 8:15:06 PM
Trust me Analysis Services is something I try to stay away from so I feel
your pain. When it comes to MDX I have almost no idea. Try the analysis
services newsgroup and see if they can give you a hand on creating a query
that will pull back the data you need in one dataset. That way you can
avoid the subreports altogether.

Good luck. You'll need it writing those queries ;)

-------------------------------------
Chris Alton, Microsoft Corp.
SQL Server Developer Support Engineer
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
[quoted text, click to view]
Re: Adding subreport values Jeppe Jespersen
10/26/2007 9:31:32 PM

Hi Chris, and thanks for replying...

[quoted text, click to view]

In short, 'cause i suck. :-( I'll try to explain.

Data is in an Analysis Services database, and MDX is not my strongpoint.
I was hoping that by splitting my queries into seperate datasources, I could
get away with much simpler queries. But, not being able to use data from
two datasets within a single table control, i figured i could do it with
subreports.

Imagine a desired report table layout like this. Not the most complex, i
admit:

Company Last Years Sales Current Sales
Total
Adv.Works 10000 4000
14000
Northwind 3200 2000
5200

Designing the above query may not be rocket science, but as far as MDX goes,
i'm more of a soapbox-car scientist. And not even a good one... :-/

FYI, I do have a time dimension on my datasource.

Any help greatly appreciated.

Jeppe Jespersen
Denmark




[quoted text, click to view]

Re: Adding subreport values Jeppe Jespersen
10/26/2007 10:19:51 PM
[quoted text, click to view]

Eeeek. And this is one of the simpler queries I'll need.
Thanks for trying to help.

Jeppe Jespersen
Denmark

AddThis Social Bookmark Button