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...
Answered

UNION ALL data of the same table from all companies in the database

(0) ShareShare
ReportReport
Posted on by 10

Hello,

Our company recently migrated our NAV based on an Azure SQL Server to a SaaS - Business Central.

I need to create some Power BI reports with data from all of the companies.

On the SQL Server I had administrative access and could create some views that do UNION ALL for the same table (like Accounts or Customers) for all companies.

Is there any way to achieve this "union all" in Business Central without using other services like Azure Data Lake as I've seen into another forum post (Access data from all companies in one central extension)?

Kind Regards,

Lucian

I have the same question (0)
  • Verified answer
    DAnny3211 Profile Picture
    11,421 Super User 2026 Season 1 on at

    Hi

    not possible, you would have to develop a procedure that would read the data in the various compnays and insert them into a temporary or physical table of type DataPerCompany=yes

    otherwise use api to retrieve the data from the various companies

    DAniele

  • Lucian C. Profile Picture
    10 on at

    Hi Daniele,

    Thank you for sugestions.

    Lucian

  • Suggested answer
    YUN ZHU Profile Picture
    100,644 Super User 2026 Season 1 on at

    Hi, This needs to be customized if you want to view it in the BC UI.

    For example, 

    Collect data from different companies and Drilldown into the data of another company

    https://yzhums.com/21252/

    However, if you are using the On-Premises version, you can directly access the BC database.

    This part of the table name is the company name. Maybe it will help you.

    pastedimage1675386841038v1.png

    Hope this helps.

    Thanks.

    ZHU

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

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 1,995 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,147 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 893

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans