In BC28, we (the AL developers) can now add Analysis Views to our AL code. In this video, I take the new capability for a quick test to see how to use it and what you can do with it. Check out the video:

In this video, Erik explores one of the exciting new features in Business Central version 28 (2026 Wave 1, runtime 17): the ability to package and deliver analysis views as part of AL extensions. He walks through the entire process — from creating an analysis view in the web client, exporting its definition, and embedding it into an AL page — while also discovering some of the current limitations of the feature.
What Are Analysis Views?
Analysis views in Business Central allow users to transform standard list pages into analytical pivot-style views. You can select columns, apply filters, add groupings, and switch into pivot mode — all directly in the web client. The new feature in BC28 lets developers export these views and ship them as part of their AL extensions.
Exporting an Analysis View Definition
The process starts in the Business Central web client. Erik creates an analysis view on the customer list, selecting fields like Balance and Balance Due. Once the view is configured, you can export its definition:
- Open a list page and switch to analysis view mode
- Configure the columns, filters, and groupings you want
- Click Share (which Erik notes is “kind of weird” placement, but it works)
- Select Export definition
- Save the resulting JSON file
The exported file is a JSON definition that captures all the configuration of your analysis view, including column states, pivot mode settings, filters, and dependencies.
Creating an AL Page with an Analysis View
To use the exported definition in your AL extension, you need to create a page and reference the analysis view file. Here’s the key discovery: the definition file must end with .analysis.json — this is enforced by the compiler and also enables schema validation on the JSON content.
Here’s the basic page structure Erik builds:
page 50100 "Customer Balance Due Overview"
{
PageType = List;
SourceTable = Customer;
Caption = 'Customer Balance Due';
AnalysisModeEnabled = true;
layout
{
area(Content)
{
repeater(General)
{
// Define columns for the data source
// (columns from the customer list)
}
}
}
analysisviews
{
analysisview(A1)
{
Caption = 'Customer Balance Due';
DefinitionFile = 'BalanceDueOverview.analysis.json';
Visible = true;
}
}
}
Key Learnings and Gotchas
Erik hits several important discoveries during his exploration:
- File naming convention: The definition file must end with
.analysis.json. Using just.jsonwill cause a compiler error. - Target object ID: The JSON file contains a
targetObjectIdproperty that should match your page number. - Layout is still required: You can’t skip the layout section — you still need to define a repeater with columns that represent the data source. The analysis view sits alongside the standard list view.
- File detection lag: Sometimes VS Code takes a moment to recognize newly created files, which can cause temporary “missing file” errors.
- AnalysisModeEnabled: Setting
AnalysisModeEnabled = trueon the page ensures the page opens in analysis mode by default.
The Limitation: No “Analysis-Only” Pages (Yet)
Erik’s original ambition was to create a page that only shows the analysis view — essentially a dedicated analytical report page. However, this isn’t fully possible yet. The page still requires a standard repeater layout, and users can toggle back to the regular list view. There’s no way to lock the page into analysis-only mode.
Erik also experiments with CurrentPage triggers and the Visible property to try to force the analysis view to be the default, but these don’t achieve the desired “analysis-only” behavior. The Visible property controls whether the analysis view appears in the list of available views, not whether it’s the active view on page open.
Inside the Analysis JSON File
The exported .analysis.json file contains structured configuration data:
- Overall settings: Pivot mode, filters, dependencies
- Column states: For each column, the file stores:
colId— unique column identifierwidth— column widthhide— whether the column is hiddenpinned— where the column is pinned (not just a boolean — it specifies the pin position, e.g., “left”)sort— sort directionsortIndex— sort orderaggFunc— aggregate functionrowGroup— row grouping configuration
Because the file uses the .analysis.json extension, the compiler can apply schema validation, which means you’ll get meaningful errors if you use incorrect values — for instance, setting pinned to a boolean instead of a position string.
Conclusion
Analysis views in AL code are a welcome addition in BC28. They provide a nice way to ship pre-built analytical views as part of your extensions — particularly useful for those “super ad hoc reports” that users frequently need. While the feature doesn’t yet support creating analysis-only pages (you still need the full layout with a repeater), the ability to define, export, and package analysis views is a solid step forward. The workflow is straightforward: build your view in the web client, export the definition, drop the .analysis.json file into your project, and reference it from your page. It’s a practical feature that bridges the gap between end-user customization and developer-delivered functionality.