web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

String to decimal in SSRS report

(0) ShareShare
ReportReport
Posted on by 6,478

Hi,

I want to format the "printCode" field of salesinvoicereport to show only 2 decimal point. How to do it when printCode is a string type field and it's value are like: "20.0000" etc..

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    =Format(CDbl(Fields!YourFieldWhichHasAmount.Value),"00.00")

  • Johnny Profile Picture
    6,478 on at

    it gives the same result. printCode textBox is in footer

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    what result it gives?

    CDbl was to convert anything to decimal

    Format was to format number

    can you please explain bit more

  • Johnny Profile Picture
    6,478 on at

    when report is opened it shows values like: "10,00000", "11,00000". This value comes from TaxSpec class, taxWriteCode() method.

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    right click your Textbox of report/tablix and go to formatting, go to Number format and select custom enter n2,

    redeploy and re-try by running report

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans