Working with Microsoft Excel layouts
Microsoft Excel report layouts are based on Excel workbooks (.xlsx files). With them, you can create reports that include familiar Excel features for summarizing, analyzing, and presenting data such as formulas, PivotTables, and PivotCharts.
This article explains some important things you need to know to get started with Excel layouts.
Why use Excel layouts?
Benefits of using Excel layouts:
- Create interactive reports using visualizations such as slicers.
- View raw data from the report dataset, which helps you understand how the report works and where the data in visuals comes from.
- Use built-in Microsoft Office features to do post-processing on rendered reports, including:
- Use installed add-ins and app integrations, such as Power Automate flows or OneDrive.
Tip
With OneDrive integration set up, when you run a report with an Excel layout, the Excel workbook file is copied to OneDrive and then opened in Excel online. For more information, see Save Excel workbooks and report files in OneDrive
Get started
There are basically two tasks involved in setting up an Excel layout of a report:
- Create the new Excel layout file.
- Add the new layout to the report.
Task 1: Create the Excel layout file
These are the three ways to create an Excel layout file for a report.
Follow these steps to create an Excel layout from any report, regardless of the current layout type. The Excel layout will contain the required Data sheet and table, a Report Metadata sheet, and nothing else.
Choose the icon, enter Report Layouts, and then choose the related link.
The Report Layouts page appears and lists all the layouts currently available for all reports.
On the Report Layouts page, choose any layout for the report, then choose the Run Report action.
On the report's request page, choose Send to > Microsoft Excel Document (data only) > OK.
This step downloads an Excel workbook that contains the report dataset.
Open the downloaded file in Excel, make changes, then save the file.
Task 2: Add the Excel layout to the report
Once you have the Excel layout file, the next task is to add it as a new layout for the report.
Choose the icon, enter Report Layouts, and then choose the related link.
The Report Layouts page appears and lists all the layouts currently available for all reports.
Choose New Layout.
Set Report ID to Report.
Enter a name in Layout Name.
Set Format Options to Excel.
Select OK, then do one of the following steps to upload the layout file for the report:
- Drag the file from file explorer on your device to the dialog box.
- Select the click here to browse link, find the file, then select the Open button.
The selected file is uploaded to the layout, and the Report Layouts page opens.
To see how the report looks in the new layout, choose the layout from the list, then select Run Report.
Understanding Excel layouts
There are a few things you need to know or consider when creating or making changes to Excel layouts. Every Excel layout must include two elements: a Data sheet and a Data table. These elements form the basis of the layout by defining the business data from Business Central that you can work with. You can think of the Data sheet as a kind of contract between the layout and the business data. You'll use this data as the source of calculations and visualizations that you want to present on other sheets.
There are some specific requirements to the structure of the Excel workbook. If the requirements aren't met, you'll have problems using the layout. The following diagram and table outline the elements of an Excel layout and the requirements.
No. | Element | Description | Mandatory |
---|---|---|---|
1 | Data sheet |
|
|
2 | Data table |
|
|
3 | Presentation sheets |
|
|
4 | Report Metadata sheet |
|
In summary, this is what you should and shouldn't do on the Data sheet:
- Don't change the name of Data sheet, Data table, or columns.
- You can delete or hide columns.
- Don't add any columns unless they're included in the report dataset.
- You can place the sheets in any order, with the Data sheet first or last.
See also
Creating an Excel layout report (developer documentation)
Managing Report Layouts
Change the Current Report Layout
Import and Export a Custom Report or Document Layout (Legacy)
Analyzing Report Data with Excel
Working with Reports
Working with Business Central
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for