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

How to show sales invoice list amount field sum in dashboard custom decimal cue

(0) ShareShare
ReportReport
Posted on by

pastedimage1662370249284v1.png

I already tried the FlowField method and  AutoFormatExpression

Please help to solve this issue...

I have the same question (0)
  • Suggested answer
    Amit Baru Profile Picture
    3,037 on at

    Hi,

    Go to Sales Que table and Create Sales Invoice Amount field--> Nature of field is flowfield and Take Sales Invoice Line table--> Line Amount--> Quantity <> 0

    Regards

    Amit Sharma

    www.erpconsultors.com

    https://www.linkedin.com/in/amit-sharma-94542440/

  • D365 business central development community Profile Picture
    on at

    Hi Amit,

    Once I created the Custom field in the Cue table with the below code

    field(1041; "S.I.Amt"; Decimal)

    {

    CalcFormula = sum("Sales Header".Amount WHERE("Document Type" = FILTER(Order)));

    Caption = 'Ongoing Sales Orders';

    FieldClass = FlowField;

    }

    And, I am getting these errors in the dashboard

    Error: An unexpected error occurred after a database command was cancelled..

  • Suggested answer
    Amit Baru Profile Picture
    3,037 on at

    Hi,

    Pls use Sales Line table instead of Sales Header. Because Amount filed in Sales Header is also a flow field. That why you are getting error.

    Regards

    Amit Sharma

    Press Yes if info is useful.

  • D365 business central development community Profile Picture
    on at

    Hi,

    I Changed the table,

    field(1041; "S.I.Amt"; Decimal)

    CalcFormula = sum("Sales Line".Amount WHERE("Document Type" = FILTER(Order)));

    but I am getting the error in VS Code

    The request for path /v2.0/Sandbox/dev/apps?SchemaUpdateMode=synchronize&DependencyPublishingOption=default failed with code UnprocessableEntity. Reason: TableExtension 50112 CueTable :: The field 'S.I.Amt' cannot be located. Removing fields is not allowed.

  • Verified answer
    Amit Baru Profile Picture
    3,037 on at

    Hi,

    Pls change schemaupdatemode = Force. when it will compile and publish, then restore the schemaupdatemode = Synchronize mode.

    https://erpconsultors.com/schemaupdatemode-in-al-in-launch-json-in-d365-bc/

    Regards

    Amit Sharma

    www.erpconsultors.com

    Press Yes if info is useful.

  • D365 business central development community Profile Picture
    on at

    Hi Amit,

               Thank you so much... Once I update the schemaUpdateMode I got the Line Amount in the Cue...

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,229

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,867 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,153 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans