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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Display 0 in field (real) only if the amount is 0, otherwise field should be blank

(1) ShareShare
ReportReport
Posted on by 102
Hello,
 
I have a field that should not show 0 by default, that is why I have property Show zero set to No
 
 
But the issue is that sometimes I need to display here zero if the calculation of the amount is actually 0.
 
How can I achieve that in those cases it should be populated with 0 and in other , by default it should be blank?
 
Thanks in advance
I have the same question (0)
  • Sohaib Cheema Profile Picture
    49,664 Super User 2026 Season 1 on at
    If you try to maintain it by trying to manage it using x++ to modify it, using the control name/types, that may bring more complexity as people can add more field (or the same filed) multiple times, using the personalization. 

    You may convert your results to a display method and your display method can show the data as per your wish.
  • Jonas "Jones" Melgaard Profile Picture
    5,016 Most Valuable Professional on at
    I'd say display method of type string.
    Do you need to be able to filter or sort by the field?
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    If the field that you are mentioning is a real/int then by default, the value will be 0. It is not possible to make it empty.
     
    Only way is to have a display method of return type string where while returning value, the integer or real should be converted to string. If at all this is already a base or existing field, you can make the field invisible and create a new display field and the functionality can be achieved.
  • Suggested answer
    Sankar Ramalingam Profile Picture
    262 on at
    You can make "Fixed amount" Form control property "Show zero" toggle Yes/No in the Form datasource active() method based on your requirement. If its Yes, then it will show 0 else blank.
  • Anton Venter Profile Picture
    20,670 Super User 2026 Season 1 on at
    Can you explain functionally why it should behave like this? If you use a display method of type str, you will probably have other issues like formatting etc.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 622

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 553 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 430

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans