Formatting Columns in SSRS Reports

by | Updated August 15, 2016 | Development, Dynamics AX

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

  • SSRS in the Parameters Node If you regularly develop Dynamics AX 2012 reports you have likely seen the report parameters displayed in SSRS under the Parameters node.  It is the…

  • If the Debugger will not break in your SQL Server Reporting Services Report and/or you want to speed up the debugging session by not printing the report and only stepping…

  • The other day when I was going through one another check (cheque) customization in AX 2012, I found that there was one more possible solution that I did not discuss…


Submit a Comment

Your email address will not be published. Required fields are marked *

Upcoming Events


31mar01aprTraining Class: Financial Reporting W/Account Schedules for Dynamics 365 Business Central

07apr2:00 pm2:30 pmEnsuring Quality for Batch Manufacturers

08apr11:00 am12:00 pmConfab with Stoneridge - Livestream - Jumping into the Deep End of the Data Lake

14apr10:00 am10:30 amBoost Seller Productivity and Close More Business with Dynamics 365 Sales

21apr10:00 am10:30 amSetting Your Sales Team Up for Success: A Modern Look at Revenue Operations

21apr12:00 pm1:00 pmGetting Started with Barcode Scanners and WMS Apps for Business Central

21apr2:00 pm3:00 pmMoving to the Cloud: Today's Solution for Leading Field Service Companies

22apr11:00 am12:00 pmConfab with Stoneridge - Livestream - Moving from Manual to Automated with Strategic Automation Strategies

28apr10:00 am10:30 amThe Modern Manufacturer: Best Practices for Inventory Turnover

28apr12:00 pm1:00 pmPower Up Microsoft Dynamics by Automating Budgeting, Dashboarding and Reporting


05may10:00 am10:30 amAchieve More with Zetadocs for Business Central

05may2:00 pm2:30 pmSimplifying Item Pricing, Availability, and Tracing for Batch Manufacturers

06may11:00 am12:00 pmD365 Field Service – New Features to Empower Your Remote Workforce

12may10:00 am10:30 amThe Modern Manufacturer: Manufacturing Software in the Real World

12may12:00 pm12:30 pmFinancial Implications of Moving from Dynamics GP to Dynamics 365: Licensing and Infrastructure

17may(may 17)8:00 am28(may 28)11:00 amDynamics 365 Finance & Supply Chain Development Training - Online Workshop

26may10:00 am10:30 amThe Modern Manufacturer - Enterprise Asset Management

About Stoneridge
Stoneridge Software is a unique Microsoft Gold Partner, with emphasis on partner. With specialties in Microsoft Dynamics 365, Microsoft Dynamics AX, Microsoft Dynamics NAV, Microsoft Dynamics GP and Microsoft Dynamics CRM, we focus on attracting the most knowledgeable experts in the field to our team, and prioritize delivering stellar solutions with maximum impact for your business. At Stoneridge, we are deeply committed to your results. Each engagement is met with a dedicated team, ready to provide thorough, tailored, and expert service. Based in Minnesota, we intentionally “step into your shoes,” wherever you are. We focus on what you care about, and develop trusting, long-term relationships with our clients.

Subscribe To Our Blog

Sign up to get periodic updates on the latest posts.

Thank you for subscribing!