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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Gross Margin by Item (CustGrossMarginbyItem_NA) Report

(0) ShareShare
ReportReport
Posted on by
So i have made some changes to the report and the Gross Margin by Item looks something like this now : 
Inline image 1
However, my concern is that Sales Balance - Source Currency is showing different values for the same Sales Balance - Reporting Currency.
I have created relations between CustInvoiceTrans and CustGrossMarginbyItem_NA based on Invoice Id, so ideally it should work.
Not sure what i might be missing out on.
Suggestions / Pointers?

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at
    RE: Gross Margin by Item (CustGrossMarginbyItem_NA) Report

    Hi Nidhi,

    I would like to help - but your image link seems to be broken.

  • Community Member Profile Picture
    on at
    RE: Gross Margin by Item (CustGrossMarginbyItem_NA) Report

    Oh is it? It is an embedded image not a link.

    I am going to post it again here :

    Gross-margin-by-item.jpg

  • Community Member Profile Picture
    on at
    RE: Gross Margin by Item (CustGrossMarginbyItem_NA) Report

    Okay - better now. Can you share the piece of code that you modified?

  • Community Member Profile Picture
    on at
    RE: Gross Margin by Item (CustGrossMarginbyItem_NA) Report

    I didn't really modify any code per say. I just added CustInvoiceTrans as the child data set of CustGrossMarginbyItem_NA.

    I created a relation between the two based on InvoiceId.

    Also, the Dynamic Property of the Fields is set to 'Yes'.

    So, i selected the 'Line Amount' field from the CustInvoiceTrans table and that is the one displayed as Sales Balance - Source Currency.

    Also, i have modified the 'Sales Balance' on the original report to appear as 'Sales Balance - Reporting Currency' (only Label modification)

    That is pretty much it.

    As per my understanding the values should be the same for Sales Balance - Source Currency same Sales Balance - Reporting Currency.

    Isn't it?

  • Martin Dráb Profile Picture
    236,477 Most Valuable Professional on at
    RE: Gross Margin by Item (CustGrossMarginbyItem_NA) Report

    We don't see the original image because you inadvertently linked it from your email account (and we obviously don't have access there).

  • Community Member Profile Picture
    on at
    RE: Gross Margin by Item (CustGrossMarginbyItem_NA) Report

    I am in middle of conf call - so most definitely would not be able to look at the code/AOT. But if you can do one thing for me that would be wonderful - can you look at the tables and do basic dry run to see if it is picking the correct records from teh Cust Invoice Trans table?

    Otherwise, you have martin on the thread and he and I actually mean it is the "Guru of AX " :)

  • Community Member Profile Picture
    on at
    RE: Gross Margin by Item (CustGrossMarginbyItem_NA) Report

    Oh Sorry! Didn't realize that.

    Anyway, i have posted another picture of the same to which you should have access. :)

  • Community Member Profile Picture
    on at
    RE: Gross Margin by Item (CustGrossMarginbyItem_NA) Report

    :) I am doing a dry run already. Will share the results, in case i run into something significant. Thanks :)

  • Martin Dráb Profile Picture
    236,477 Most Valuable Professional on at
    RE: Gross Margin by Item (CustGrossMarginbyItem_NA) Report

    What's the source of those fields?

    And what if you run the query directly (such as in a job or DEV_QueryBrowser) and check field values? It would be easier to debug than if you put a report between you and the query.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#3
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans