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 :
Microsoft Dynamics AX (Archived)

Display Method for Sum of data of the fields in report

(0) ShareShare
ReportReport
Posted on by

I had just added one field in the report. Now i got the values but it is not display the sum of data in the field.

The Field is from Taxtrans and field name is SourceBaseAmountCur

Can you suggest only display method

*This post is locked for comments

I have the same question (0)
  • Rohin Profile Picture
    4,624 on at

    Please look at this thread 

  • Community Member Profile Picture
    on at

    It is not working

  • Rohin Profile Picture
    4,624 on at

    share your code please..

  • Community Member Profile Picture
    on at

    public display Real TotalTax()

    {

    TaxTrans    T;

    ;

       While Select sum(SourceBaseAmountCur) from T where simply add && T.SourceBaseAmountCur> 0

    return T.SourceBaseAmountCur;

    }

  • Suggested answer
    Sukrut Parab Profile Picture
    71,735 Moderator on at

    If it's not working first check if your simple query is returning any value .

    Your display method should be like this

    Select sum(fieldname) from table

         Where conditions

    Return table.fieldname

  • Suggested answer
    Rohin Profile Picture
    4,624 on at

    Mr. Reddy, I have shared you above thread that is merely an  example. You have to write your code according to your condition. I don't see any condition in your where clause except T.SourceBaseAmountCur> 0

      In shared thread Martin means "simply add && custInvoiceTrans.Qty > 0 to your where condition." that you have to add "&&" with your condition to where clause.

  • Community Member Profile Picture
    on at

    Hello Sukrut,

    What is the Where condition i have to write it is only my main question.

    I am getting many Errors at here.

  • Sukrut Parab Profile Picture
    71,735 Moderator on at

    we don't know business requirement . You know business requirement better than us. Based on you requirement include condition on table  to select data.

  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at

    Hi,

    Instead of a display method, can't you use a expression on the new field like

    =Fields!Taxtrans.Value + Fields! SourceBaseAmountCur.Value (substitute column values from report design in Visual studio) (or) do you have any specific business logic.

  • Community Member Profile Picture
    on at

    It is just to display the amount of CGST, SGST and IGST in report

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 March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 16

#2
GiacomoRovai Profile Picture

GiacomoRovai 4

#3
Douglas Noel Profile Picture

Douglas Noel 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans