With Reporting Services is number formatting so easy. You can continue with our series and get report from here, or just open your report and follow bellow instructions. There are 2 basic places in designer surface where to format figures in your report Tablix.
- Through Tablix Text Box Properties
- Properties Pane
Tip: if you would like to format more text boxes in Tablix you can do it in few ways.
- Select text boxes you would like to format by clicking mouse cursor holding Left shift and change formatting in Properties Pane. (this will work in case that all text boxes would have the same formatting, if one text box format differs from others you will not be allowed to change the format).
- You can change formatting in one text box and by copy paste action to other textboxes, formats are transferred.
- Download report and open it in a texts editor and replace formatting tags
Let’s look on the report we created in post SSRS Tablix – repeating header. We would like to format Sum Sales Amount column with currency.
Go to text box with Sum Sales Amount value. Choose for example the one from EnglishCountryName group, right click and select Text Box Properties from popup menu.
Text Box Properties window is opened, and you can set Currency formatting options. Click on Currency category and choose format you would like to apply. On picture bellow you can see that you have many options to set currency format: how many decimal places, if use 1000 separator, how to display negative numbers which currency symbol to display and where, etc. Regional setting of machine where Reporting Services are installed has impact on default settings in Text Box Properties window. Reporting Services supports regional formatting in different regional environments. For our report I left the default English settings.
After formatting the rest of text boxes with Sum Sales Amount you can see formatted report bellow.
In Properties Pane, Number section, Format property you can find currency formatting we set.
In other posts I will describe other scenarios and approaches to format data in reports.
Stay tuned.