Sql-server – How to use the sum the value of 2 totals in different table (Reporting Services)

reporting-servicessql server

In report design, I have 2 tables (Current and Proposed) the structure like this:

Current

Parameter | Value | Rate | Total

Value ...

Proposed

Parameter | Value | Rate | Total

Value ...

Each bottom of the table (Table Footer), I have something called: "Total: " which is a sum of Total field. I called these textboxes are txtbxCurrent and txtbxProposed and the format is in currency already.

This thing is running well.

But now I need to get a total of these txtbxCurrent and txtbxProposed. How do I do this? Can I take the value of this or not?

BTW .. I am using Ms SQL Server 2005 (ReportViewer – client)

Also here my SINGLE dataset looks like:

RecID | ReportView | Type | Parameter | Value | Rate | Total
1, 'Detail', CURRENT, 'Param1', 100, 0.1, 10
1, 'Detail', CURRENT, 'Param2', 200, 0.2, 10
1, 'Detail', PROPOSED, 'Param1', 100, 0.2, 20
1, 'Detail', PROPOSED, 'Param2', 200, 0.2, 20

The only I can think of is that I could append for another ReportView such as 'Ttl' but I am just wondering I could do from the current dataset.

Thanks

Best Answer

Could you create a new table that only has the totals for the third table?

ex:

Table 1 Table 2 Table 3 (only has total of Table 1 + Table 2)

You might be able to use parameters to store the totals to add as well, but a 3rd table would be pretty easy to create.

Related Topic