10 - Build a P&L intelligence sheet

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.

Prerequisites#

Before you begin, ensure you have:

  • Access to a Microsoft Fabric workspace with Fabric plan and permission to work with intelligence sheets.
  • Access to the semantic model used in this tutorial.
  • Completed Introduction to intelligence sheets.

Business context#

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:

  1. Create a P&L intelligence sheet and configure a Matrix visual.
  2. Add calculated and data input rows to the P&L.
  3. Group, hide, reorder, and format rows and columns.
  4. Add Approval Status and Stakeholder columns.
  5. Add a report header and logo.
  6. Export the completed P&L to Excel and PDF.

Sample dataset#

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 the intelligence sheet and map data#

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.

  1. On the Home tab, select New Intelligence Sheet.

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

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

  4. Verify that Semantic Model is selected and that Enterprise Dataset is selected, and then select Connect.

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

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

  7. In the Visualizations pane, select Matrix.

  8. Map the data to the Matrix visual:

    • In the Data pane, expand Semantic Model > Measure > Financial > Base Measures. Add Actuals to Values (AC) and Plan to Compare to Plan (PL).
    • Under [Dim] Account, expand Account Hierarchy and add the hierarchy to Rows. The hierarchy includes the account levels used by the matrix.
    • Under the date dimension, add Time to Columns.

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

    The Financial template applies indentation, subtotals, and bold formatting to parent rows.

Add calculated and input rows#

Add rows that aren't part of the semantic model: Gross Margin %, Shares Outstanding, and Earnings Per Share.

Insert a calculated row: Gross Margin %

Create a calculated row to show gross margin as a percentage of revenue.

  1. On the Data tab, select Insert Row > Formula.

  2. In the Calculated Row pane, enter Gross Margin % in Title.
  3. In Formula, enter ([Revenue] - [Cost of Revenue / COGS]) / [Revenue] using row references.
  4. Set Scaling Factor to None, and then select Create.
  5. Select the Gross Margin % row. On the Matrix tab, select the % button to format the row as a percentage.

Insert a static row: Shares Outstanding

Add a data input row for the number of shares used in the report.

  1. Select the row gripper for Revenue, select Insert, and then select Data Input.

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

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

Insert a calculated row: Earnings Per Share

Create a calculated row that divides revenue by the number of shares outstanding.

  1. On the Data tab, select Insert Row > Formula.

  2. In the Calculated Row pane, enter Earnings Per Share in Title.
  3. In Formula, enter [Revenue] / [Shares Outstanding], and then select Create.

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

  5. In Value prefix, enter $, and then select Apply.

Format and organize the report#

Group related rows and columns, hide confidential rows, reorder the new rows, apply highlighting, and add gridlines.

Group and hide confidential rows

Group sensitive rows together and hide them from the report view.

  1. Select Engineering Salaries and Product Management. Use Ctrl-click to select both rows.
  2. On the Matrix tab, select Layout > Group > Create Group.

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

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

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

Group the metrics columns

Group the Actuals and Plan columns to organize the report metrics.

  1. Ctrl+click the Actuals and Plan column headers.
  2. On the Matrix tab, select Layout > Group > Create Group.

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

Reorder and highlight rows

Reorder the added rows and highlight Earnings Per Share for easier identification.

  1. Select Shares Outstanding, Earnings Per Share, and Gross Margin %, and drag them above Revenue.

  2. Verify that the new rows appear above Revenue.

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

Add gridlines and apply report colors

Apply gridlines and report theme colors to improve the matrix layout.

  1. On the Format tab, select Major Gridlines, and then select Single.

  2. Use the Theme Colors options on the Format tab to apply the organization’s report colors to the matrix.

Add custom columns, report header, and export#

Add Approval Status and Stakeholder columns, add a report header and logo, and export the completed P&L.

Add Approval Status

Add a column to track the approval state of the report.

  1. On the Data tab, select List, and then select Single Select.

  2. In the Data Input pane, enter Approval Status in Title.
  3. Select Presets, select Approval Status, and then select Apply.

  4. Select Create.

Add stakeholder

Add a column to assign report ownership to a stakeholder.

  1. On the Data tab, select Person.

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

  3. Select Create.

  4. In a stakeholder cell, enter @ followed by a user's name to search the organization directory and assign ownership.

Add a report header

Add a report header with a title and logo to identify the finished report.

  1. On the Format tab, select Header & Footer.

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

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

  4. Select the Your Logo container and select Replace Image.

  5. Upload the Contoso logo image and select Save.

Export the report

Export the completed report to Excel and PDF for sharing and offline use.

  1. On the Matrix tab, select Export.

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

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

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

Outcome#

You now have a P&L intelligence sheet that:

  • Uses the Enterprise Dataset semantic model with a Matrix visual and Financial template.
  • Includes calculated and input rows for Gross Margin %, Shares Outstanding, and Earnings Per Share.
  • Groups, hides, reorders, and formats P&L rows and columns.
  • Includes Approval Status and Stakeholder fields.
  • Includes a report header and logo.
  • Can be exported to Excel and PDF.
Microsoft, Azure, Copilot, Excel, Fabric IQ, Microsoft Entra, Microsoft Fabric, Microsoft Teams, OneLake, Outlook, Power Automate, Power BI and SharePoint are trademarks of the Microsoft group of companies. IBCS is a registered trademark of IBCS Association. All other trademarks are the property of their respective owners.

This community is operated independently by Lumel. Nothing on this site constitutes a representation or warranty by Microsoft.