How to Display the Decimal Value as a Percentage in D365 BC

Display the Decimal Value as a Percentage in D365 BC:

(1) In this blog we will get to know about the conversion of decimal values into percentages in D365 BC by using these properties:

  • AutoFormatType.
  • AutoFormatExpression.

(2) For this create a field in the table, as shown.

create a field in the table in d365 bc

(3) After creating a field in the table, show that field on the page with these properties, as shown.

show field on the page with these properties in d365 bc

(4) Notes from Microsoft: If you want to display the decimal value as a percentage, then you can add % at the end of the setting. For example:

  • AutoFormatType = 10;
  • AutoFormatExpression = ‘<precision, 1:1><standard format,0>%’
  • When you include a % at the end of the setting, then the decimal value is assumed to be the ratio, and the decimal value will be multiplied by 100. For example, a value of 0.98 will be formatted to 98%.
  • For more information refer to this link- Setting the AutoFormatExpression property.

(5) After doing the above steps, publish the extension and check the result, as shown.

  • Enter 0.234 in the field “Decimal value as Percentage” and the system auto convert it into 23.40%, as shown
Decimal Value as a Percentage in D365 BC

Analyze Process Performance in Business Central
Modify D365 BC Server Services Using BC Administration Shell
How to attach Report in Page in D365 BC
How to define Custom Object Range in AL in D365 BC
Usage of TESTFIELD in D365 BC
Creation and Usage of Temporary Table in BC D365
How to Move fields in Page via AL Extension in D365 BC

Leave a Reply