Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Report Writer: Printout with 2 decimal points, if is zeros show blank

(0) ShareShare
ReportReport
Posted on by 3,795

Could you please advise on how to show a currency field content in 2 decimal points and if it is 0.00000 then show empty (completely blank).

I have added a calculated field and it can be printout as empty/blank, when it is zero 0.00000 but the problem is that it will show all 5 decimal points. http://img413.imageshack.us/img413/7913/20100629215330q.png

But I want it in 2 decimal points.

I have tried to use the RW_Truncate ( fieldname  0  3) but without success.

Many thanks in advance.

*This post is locked for comments

  • Beat Bucher  GP Geek  GPUG All Star Profile Picture
    Beat Bucher GP Gee... 28,058 Moderator on at
    Re: Re: Re: Report Writer: Printout with 2 decimal points, if is zeros show blank

     Hi William,

    Glad it worked :-). I hadn't the time yesterday to digg into the subject in detail to look for an alternative solution.
    Have a great time, Beat.

  • William Kow Profile Picture
    William Kow 3,795 on at
    Re: Re: Report Writer: Printout with 2 decimal points, if is zeros show blank
    Hmm... I have missed a setting, I have used another 'currency' format field and set it to 'Hide When Empty'. Then I can get the result. Anyway, many thanks to the reply from community, Béat Bucher.
  • William Kow Profile Picture
    William Kow 3,795 on at
    Re: Re: Report Writer: Printout with 2 decimal points, if is zeros show blank

    Many thanks for your reply.

    Yes, the field format options is the way for us to define different presentation of a field. However, as for the "Currency" format type, there is no setting for printout as blank but not just zero.

    http://img689.imageshack.us/img689/5177/20100629225717.png 

    Thus, i define a calculated field (Type=String) conditional when it is zero, it will show a blank.

    http://img413.imageshack.us/img413/7913/20100629215330q.png

    But this calculated will resulting the 5 decimal points if it is not zero.

  • Beat Bucher  GP Geek  GPUG All Star Profile Picture
    Beat Bucher GP Gee... 28,058 Moderator on at
    Re: Report Writer: Printout with 2 decimal points, if is zeros show blank

    Hi William,

    The format that shows up on the paper in the reports are not driven by the field from the tables or a calculated field in the report. You should rather take a look at the field format option in the report itself and then select one of the various numeric formats. They drive the "layout" appearence of the data once they are printed.

    http://img31.imageshack.us/img31/4818/rwnumericformats.jpg

    Try out one of the various formats and take the ones that suits the most. Unfortunatly you don't name the report you're trying to modify, so I couldn't really test it :-)

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans