In this tutorial, you build a P&L intelligence sheet by using the Enterprise Dataset semantic model. You create a financial matrix, add calculated and input rows, organize and format the report, add approval and stakeholder fields, and export the completed P&L.
Before you begin, ensure you have:
You are a BI analyst at a SaaS company. Your team needs a P&L statement to analyze financial performance across products and business dimensions.
In this tutorial, you build the P&L statement in an intelligence sheet, add calculated and input rows, organize confidential information, add approval and stakeholder fields, and prepare the report for sharing and export.
In this tutorial, you:
This tutorial uses the Enterprise Dataset semantic model to build the P&L statement.
If you didn't already import the dataset, follow the steps in Introduction to intelligence sheets.
Create an intelligence sheet, connect the Enterprise Dataset semantic model, add a Matrix visual, map the financial measures and account hierarchy, and apply the Financial template.
On the Home tab, select New Intelligence Sheet.

In OneLake catalog, select Enterprise Dataset, and then select Add.

In Select Semantic Model Connection, select the shared cloud connection you want to use. If you need a new connection, select Create Connection and complete the connection setup.
Verify that Semantic Model is selected and that Enterprise Dataset is selected, and then select Connect.

After the semantic model is connected, select New Intelligence Sheet.

In New Intelligence Sheet, enter P&L Statement as the name, and then select Create.

In the Visualizations pane, select Matrix.

Map the data to the Matrix visual:
Under the date dimension, add Time to Columns.

On the Matrix tab, select Templates, and then select Financial.

The Financial template applies indentation, subtotals, and bold formatting to parent rows.
Add rows that aren't part of the semantic model: Gross Margin %, Shares Outstanding, and Earnings Per Share.
Create a calculated row to show gross margin as a percentage of revenue.
On the Data tab, select Insert Row > Formula.

Gross Margin % in Title.([Revenue] - [Cost of Revenue / COGS]) / [Revenue] using row references.Select the Gross Margin % row. On the Matrix tab, select the % button to format the row as a percentage.

Add a data input row for the number of shares used in the report.
Select the row gripper for Revenue, select Insert, and then select Data Input.

In the Data Input pane, enter Shares Outstanding in Title, and then select Create.

Enter 100m for Actuals and 150m for Plan, pressing Enter after each value.

Create a calculated row that divides revenue by the number of shares outstanding.
On the Data tab, select Insert Row > Formula.

Earnings Per Share in Title.In Formula, enter [Revenue] / [Shares Outstanding], and then select Create.

Select the Earnings Per Share row. On the Matrix tab, select the $€ button.

$, and then select Apply.Group related rows and columns, hide confidential rows, reorder the new rows, apply highlighting, and add gridlines.
Group sensitive rows together and hide them from the report view.
On the Matrix tab, select Layout > Group > Create Group.

In the group window, enter Confidential as the group name, and then create the group.

Select the gripper for the Confidential group, select Actions, and then select Hide icon & children.

Select the Confidential row. On the Format tab, select Font Color, enter #9467BD, and then select Save.


Group the Actuals and Plan columns to organize the report metrics.
On the Matrix tab, select Layout > Group > Create Group.

Enter Metrics as the group name, and then create the group.


Reorder the added rows and highlight Earnings Per Share for easier identification.
Select Shares Outstanding, Earnings Per Share, and Gross Margin %, and drag them above Revenue.

Verify that the new rows appear above Revenue.

Select Earnings Per Share. On the Format tab, select Fill Color, enter #9467BD, and then select Save.


Apply gridlines and report theme colors to improve the matrix layout.
On the Format tab, select Major Gridlines, and then select Single.

Use the Theme Colors options on the Format tab to apply the organization’s report colors to the matrix.
Add Approval Status and Stakeholder columns, add a report header and logo, and export the completed P&L.
Add a column to track the approval state of the report.
On the Data tab, select List, and then select Single Select.

Approval Status in Title.Select Presets, select Approval Status, and then select Apply.

Select Create.

Add a column to assign report ownership to a stakeholder.
On the Data tab, select Person.

In the Data Input pane, enter Stakeholder in Title and select Person for Input type.

Select Create.

@ followed by a user's name to search the organization directory and assign ownership.Add a report header with a title and logo to identify the finished report.
On the Format tab, select Header & Footer.

The Header & Footer tab opens. Select Presets, and then select Header.

Select the report title container and change the title to Profit and Loss Statement.

Select the Your Logo container and select Replace Image.

Upload the Contoso logo image and select Save.

Export the completed report to Excel and PDF for sharing and offline use.
On the Matrix tab, select Export.

To preserve the matrix hierarchy for interactive expansion and collapse, select With Expand/Collapse. Select Entire Matrix, and then select Export.

When the download is ready, open or save the Excel file from your browser's Downloads notification.

Repeat the export and select PDF in the Export window. Select Entire Matrix, and then select Export.

You now have a P&L intelligence sheet that:
