简体   繁体   中英

SSRS report totals

I have an SSRS report which contains various currency entries in the form of €3340.89 stored as a string in the DB.

How can I add a line at the end of the report with the sum totals of that column?

In order to sum them you will need to either:

  • Cast them as Decimal/Money in the SQL statement.

    select CAST(REPLACE('€3340.89', '€','') as DECIMAL(10,4))

  • Use expressions to convert them in the report, then sum the expressions.

My preference would be the former as it's easier to maintain.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM