Formatting Columns in SSRS Reports

By Bill Thompson | April 4, 2014

When working on SSRS reports in the Dynamics AX 2012 reporting framework, a lot of the information comes over from the MorphX Extended Data Types.  However, there are still times when you need to work in SSRS to make the format of the column match what your client requests.

For example, say you are calculating a percentage for your report, and your client wants to have the column display the value to one decimal place.  Also, the requirement is to show 0.0 if the value comes in as 0.  There really are a couple of ways to do this.

1.   From what I have seen, the recommended approach is to use the Format property of the textbox that contains your value.  Set the property to the following:

  • ###,##0.0


  • This will put a comma between the hundreds and thousands column (if applicable to the value) and will default 0.0 into the column if the value is 0, otherwise the value will show up with a single decimal place.


 2.   Right click on the textbox, and choose Properties from the menu that appears.  This allows you to control the formatting of the text that comes into the textbox based on the type of data (General, number, currency, etc.).  Set the appropriate values based on the Development criteria for your data.


3.   You can use an expression to do the work for you.  The expression would be something like the following:


  • =Format(Fields!Mypercentfield.Value,”###,##0.0”)


  • This will do the same as the first example.


So, the question is, why bring this up?  The reason I do so is, what happens if the client decides they want to have a percent sign ‘%’ be displayed after the value?  If you use the formatting method where you set the format on the column, if you try to append a ‘%’ to the value, the report will show #Error in that column.  BUT, if you use the second method, you can do an expression like the following (NO formatting property configuration on the text box):

=Format(Fields!Mypercentfield.Value,”###,##0.0”) + “  %”


This gives you additional flexibility in formatting the column, as you are not limiting what goes in the column by using the Format property of the textbox.  I prefer to use the first method, but there are times where that just won’t work.



Related Posts

Recommended Reading:

Manage U.S. Use Tax on Purchase Orders in Dynamics 365 Finance and Operations

  Managing sales tax requirements on your business purchase can be complicated, but Dynamics 365 Finance and Operations can help […]

Read the Article
5.19.22 Dynamics CRM

How to Write a Great Support Ticket in the Stoneridge Support Portal

Submitting a support ticket through the Stoneridge Support Portal is a quick and effective way to get assistance for any […]

Read the Article

Managing Your Business Through Uncertain Times Using Dynamics 365 Finance and Operations

  Dynamics 365 Finance and Operations (F&O) can help you make informed decisions on how to move your business forward. […]

Read the Article
5.13.22 Power Platform

Using Power BI Object Level Security

  The following article will demonstrate how to use Power BI Object Level Security to disable column data based on […]

Read the Article
5.12.22 Dynamics CRM

How to Use the Stoneridge Support Portal

Stoneridge Software’s support portal is an intuitive and useful function that makes it easy for you to access resources to […]

Read the Article
5.6.22 Dynamics GP

Dynamics GP Transaction Removal: Purchase Orders

  Are you having performance issues with Purchase Orders?  Do you find that there are old Purchase Orders on your […]

Read the Article
5.5.22 Dynamics GP

The Real Story about the Long-Term Future of Dynamics GP Support

I’ve seen a number of people put forward comment that Dynamics GP is going away and you have to get […]

Read the Article

New Features in Dynamics 365 Business Central 2022 Wave 1 Release – Financial Enhancements

The Dynamics 365 Businses Central 2022 Wave 1 Release has a lot of new and exciting features to help your […]

Read the Article
4.29.22 Dynamics GP

Dynamics GP Transaction Removals: Bank Reconciliation

  This is part 2 of a 3 part series on Dynamics GP Transaction Removals. These quick tips will hopefully […]

Read the Article

Start the Conversation

It’s our mission to help clients win. We’d love to talk to you about the right business solutions to help you achieve your goals.

Subscribe To Our Blog

Sign up to get periodic updates on the latest posts.

Thank you for subscribing!