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)

AX2012 R3 combine data of two legal entites data into one report

(0) ShareShare
ReportReport
Posted on by 3,390

Hello, 

please let me know if we can design a report which can fetch data from two legal entities and display. Like we have posted general journals in two legal entities and now in a custom report I want to fetch the amount and voucher in two columns respectively, is it possible

*This post is locked for comments

I have the same question (0)
  • NaveenKumar S Profile Picture
    3,390 on at
    RE: AX2012 R3 combine data of two legal entites data into one report

    Hello Blue Wang, thank you, will try this

  • NaveenKumar S Profile Picture
    3,390 on at
    RE: AX2012 R3 combine data of two legal entites data into one report

    Hello Dr. Ludwig, I want to get the monthly expenses posted in two entities using general journals. the two legal entities have the same COA and the report should show the expense. But these cannot be treated as operating units or using dimension, they have to be separate entities

  • NaveenKumar S Profile Picture
    3,390 on at
    RE: AX2012 R3 combine data of two legal entites data into one report

    Hello Satish, thank you I will try this

  • NaveenKumar S Profile Picture
    3,390 on at
    RE: AX2012 R3 combine data of two legal entites data into one report

    Hello Dr. Ludwig, thank you, I will try in MR

  • Verified answer
    Blue Wang Profile Picture
    on at
    RE: AX2012 R3 combine data of two legal entites data into one report

    Hi  Naveen,

    You can refer : https://docs.microsoft.com/en-us/dynamicsax-2012/developer/cross-company-reports-in-the-aot

    Such as cross Legal Entites to run vendor ageing reports, you should use ChangeCompany in the VendAgingReportDP class method processReport.

       CompanyName nameOfCompany;
       TableName contractCompany;
       ;
    
        while select contractCompany
        {
            if (contractCompany.dataAreaId == 'xxx')
            {
                changecompany(contractCompany.LegalEntity)
                {
                    nameOfCompany = curext();
                    info(strFmt("Name : %1",nameOfCompany));
                }
            }
        }


    I hope it will help you.

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: AX2012 R3 combine data of two legal entites data into one report

    Hi Naveen,

    Can you specify what kind of data you want to have analyzed together across companies?

    Are these accounting related data or some other data?

    Would be great if you could clarify.

    Many thanks and best regards,

    Ludwig

  • Verified answer
    Satish Panwar Profile Picture
    14,669 Moderator on at
    RE: AX2012 R3 combine data of two legal entites data into one report

    Valid scenario. You can take a look at report below that shows how to fetch data from multiple companies..

    InterCompanyGoodsInTransitTotals

    You just need to use the keyword "changecompany(... dataAreaId)" to get data from other company.

  • Verified answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: AX2012 R3 combine data of two legal entites data into one report

    Hi Naveen,

    You can combine data from two or even all of your companies in a Management reporter report.

    There are a  couple of default reports available in the MR. Please check them to get an impression of how your report can be designed.

    Please let us know if this answered your question resp solved your issue.

    Best regards

    Ludwig

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…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Syed Haris Shah Profile Picture

Syed Haris Shah 9

#2
Mea_ Profile Picture

Mea_ 4

#3
KP-31070522-0 Profile Picture

KP-31070522-0 3

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans