formatting fields to show currency in SSRS

后端 未结 3 1409
悲哀的现实
悲哀的现实 2020-12-16 12:12

I am trying to format a field for salary and can\'t seem to bring out the currency symbol when doing the formatting. I have tried using the text box field formatter and then

相关标签:
3条回答
  • 2020-12-16 12:42

    currency number format

      =Format(Sum(Fields!MyField.Value), "C")
    
    0 讨论(0)
  • 2020-12-16 12:49

    Set the textbox format as C0, i.e. currency to 0 decimal places:

    enter image description here

    This will be affected by the report Language property - set to en-GB for pounds, as in your example:

    enter image description here

    You can also set the textbox properties, which also gives you the option to set the symbol outside of the report language:

    enter image description here

    Finally, you can use a string like:

    =Format(Fields!number.Value, "C0")
    

    This does change the field type to a string, unlike the other options, which can have en effect if exporting to Excel.

    0 讨论(0)
  • 2020-12-16 12:50

    thanks for your help. I have found another solution to my problem.

    I have changed all the formatting properties and then entered the following expression:

    =CDbl(FormatNumber((CDbl(Fields!number.Value)),2))

    Not the most elegent of solutions but it works.

    0 讨论(0)
提交回复
热议问题