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 :
Small and medium business | Business Central, N...
Suggested Answer

How to extend a CalcFormula in a TableExtension

(0) ShareShare
ReportReport
Posted on by 5

We'd like to set a custom filter on the Field `Acquisition Cost`. The current CalcFormula is

 field(15; "Acquisition Cost"; Decimal)
{
    AutoFormatType = 1;
    CalcFormula = Sum("FA Ledger Entry".Amount WHERE("FA No." = FIELD("FA No."),
                                                      "Depreciation Book Code" = FIELD("Depreciation Book Code"),
                                                      "FA Posting Category" = CONST(" "),
                                                      "FA Posting Type" = CONST("Acquisition Cost"),
                                                      "FA Posting Date" = FIELD("FA Posting Date Filter")));
    Caption = 'Acquisition Cost';
    Editable = false;
    FieldClass = FlowField;
}


We'd like to have it something like this:
 field(15; "Acquisition Cost"; Decimal)
{
    AutoFormatType = 1;
    CalcFormula = Sum("FA Ledger Entry".Amount WHERE("FA No." = FIELD("FA No."),
                                                      "Depreciation Book Code" = FIELD("Depreciation Book Code"),
                                                      "FA Posting Category" = CONST(" "),
                                                      "FA Posting Type" = CONST("Acquisition Cost" | "OUR CUSTOM VALUE"), // <<- Add this
                                                      "FA Posting Date" = FIELD("FA Posting Date Filter")));
    Caption = 'Acquisition Cost';
    Editable = false;
    FieldClass = FlowField;
}

Is there any way to do this? Thanks for your help

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    Hi,

    As of now there is no way to customize calcformula, but there is workaround you can use, please refer below link

    community.dynamics.com/.../workaround-to-modify-standard-table-field-calcformula

  • Suggested answer
    Steven Renders Profile Picture
    5,698 Moderator on at

    Calcformula is a property that can not be extended:

    docs.microsoft.com/.../devenv-table-properties

    You have to create a new field instead.

  • Suggested answer
    YUN ZHU Profile Picture
    101,416 Super User 2026 Season 1 on at

    Hi, As mentioned by several experts above, the property 'CalcFormula' cannot be customized.

    So, please hide the existing field and create a new one.

    pastedimage1654136397986v1.png

    Hope this helps as well.

    Thanks.

    ZHU

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,216 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,471 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,369

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans