Solved

Adding textbox in SQL Reporting services

Posted on 2009-05-05
3
898 Views
Last Modified: 2012-05-06
Guy thanks for the help in SSRS.

What I have now is a complet table with one query.

I need to add tables in the query.

something like.

Table 1 + Table 2 = Table3 (Total of 1 and 2)
then take Table 3 Total and add something in Table 4.

Can you do math with the Textbox names in the talbes?

Sam
0
Comment
Question by:SamRunyon
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 13

Expert Comment

by:St3veMax
ID: 24303866
You can add different values from multiple data sources; Click on 'Expression' when you right click on the cell you want the value in, then select the value 1 from Dataset 1 then value 2 from dataset 2, so you expression will end up with something like this:

=Fields!Dataset1.Value1 + Fields!Dataset2.Value2

HTH
0
 

Author Comment

by:SamRunyon
ID: 24304094
Steve I tried that.

=Fields!EnergyClassic.Value * Fields!DataSetSpectraBTUFactor.Value

this is the error I got.

[rsFieldReference] The Value expression for the textbox EnergyClassic refers to the field DataSetSpectraBTUFactor.  Report item expressions can only refer to fields within the current data set scope or, if inside an aggregate, the specified data set scope.
Build complete -- 1 errors, 0 warnings

Any Help.
0
 
LVL 27

Accepted Solution

by:
Chris Luttrell earned 500 total points
ID: 24308198
you cannot reference items from another dataset like that, you can only reference aggregates and use a SCOPE of the dataset.  Don't know your exact values but something like this in Table4 could refference the total of a field from Table3.
=SUM(Fields!EnergyClassic.Value,"Table3")*Fields!DataSetSpectraBTUFactor.Value
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question