Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


How to get access SUM for each element within a Group separately in SSRS??


How to get access SUM for each element within a Group separately in SSRS??

Author
Message
pkjsh13
pkjsh13
SSC-Enthusiastic
SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)

Group: General Forum Members
Points: 155 Visits: 124
Hi,

I've have a report in SSRS where i'am grouping on a column and showing its aggregate alongside it. The report will be in a format similar to below:

State Population
abc 100
xyz 200
pqr 300

In the tablix, grouping is being done on State Column and sum of corresponding Population field is shown.

Now is there a way to access these SUM values outside the group, like i would like to access Population SUM of state abc, xyz and pqr individually. Is it possible, if so then how??
robert.gerald.taylor
robert.gerald.taylor
Ten Centuries
Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)

Group: General Forum Members
Points: 1330 Visits: 1399
Can you just refer to the textbox's value property? Something like:

=ReportItems!txtName.Value

HTH,
Rob
pkjsh13
pkjsh13
SSC-Enthusiastic
SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)

Group: General Forum Members
Points: 155 Visits: 124
I'm not sure if that will work since the text box is within a Group and there will be multiple text box on run time depending on the number of States present in the data.

Anyways i did get the solution for it at some other place. It used an expression like the one below:

sum(iif(Fields!State.Value="abc",Fields!Population.Value,0))

I have to use similar expression to get SUM values for other States.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search