Data Analysis Views in 365 Business Central: Package analysis view in AL

May 4, 2026
3 min read
By Maksymilian Meller

Table of Contents

This is a list of all the sections in this post. Click on any of them to jump to that section.

Analysis View

In Microsoft Dynamics 365 Business Central, analysis views are a feature designed to help users analyze data directly in the Business Central giving them similar experience while using Excel pivot tables.

Prerequisites

Permission Sets

To start using you need to assign to users Permission Set DATA ANALYSIS - EXEC or be sure that system object 9640 Allow Data Analysis mode is set up.

Feature management

If you are using version 22, this feature is in preview version. You need to enable Feature Update: Analysis on Feature Management page.

Add analysis view to AL code

The following steps must be completed to embed analysis view in AL code:

  1. Design analysis view in Business Central client
  2. Export analysis view to JSON file
  3. Add JSON file to AL project
  4. Create an new object and embed analysis view
  5. Compile and publish

Prepare analysis view in Business Central

define

Export definition

An new action, Export Definition is available in analysis view mode on share section.

export_definition

This action exports a JSON file with the analysis definition.

Build new object in your app

Place the downloaded file in your AL project:

analysis_file

An analysis view can be located in the following objects:

  • Pages
  • PageExtensions
  • PageCustomizations

An new syntax keyword, analysisviews is now available. Under it analysisview elements can be defined.

In the DestinationFile property, the path to the generated JSON file must be specified.

pageextension 50100 CustLedgerAnalysis extends "Customer Ledger Entries"
{
analysisviews
{
addlast
{
analysisview(SalesPerCustomer)
{
Caption = 'Sales per Customer';
DefinitionFile = 'analysis/Sales per Customer.analysis.json';
ToolTip = 'Shows a yearly sales summary for each customer.';
}
}
}
}

Schema

As a good practice, avoid applying data filters before exporting the analysis definition. Data may vary between companies and/or environments.

After the packaged analysis is published, if the schema changes (for example, a field is removed), the analysis will skip missing fields without causing runtime errors.

Packaged analysis view

A packaged analysis view is visible as a tab on the list page.

The view is read-only. Sorting, filtering, grouping, and other data modifications are blocked. The view is represented by a locked icon.

To modify a packaged analysis view, users can duplicate it and customize the copy.

Packaged views can be hidden using personalization mode.

embeded

Key Characteristics

Unlike analysis views created by users, packaged views:

  • Cannot be deleted or moved by users.
  • Remain consistent for all users.
  • Personalizations aren’t affect package view, since they are defined in AL code rather than stored as user-specific data.

Consulsion

Packaged analysis views in Business Central allows to deliver predefined and unified view for the all users across organization.