Compartir vía


Prepare data for Sustainability data solutions in Fabric

This article outlines the steps to prepare your data in Sustainability data solutions in Microsoft Fabric for sustainability reporting. It helps you to:

  • Align your data with the Corporate Sustainability Reporting Directive (CSRD) standard.

  • Prepare a Power Automate flow before using the connector for integration with external reporting in Microsoft Sustainability Manager.

Prerequisite

Before proceeding with these steps, ensure that you have the lakehouse set up. Verify the presence of the following two SQL tables in the Microsoft Fabric lakehouse:

  • ComputedESGMetrics
  • MetricsDefinitions

Screenshot of SQL tables in Fabric lakehouse.

Set up connections for Dataverse and SQL Endpoint

  1. In the Power Apps portal, select your environment in the upper right corner.

  2. On the left navigation, select Connections from the left navigation, and then select New connection.

  3. Set up the Dataverse connection:

    • Search for Dataverse in the upper right search bar, and select Microsoft Dataverse. If there are two Dataverse connections, select the one that isn't grayed out.

      Screenshot of selecting Microsoft Dataverse.

    • Sign in, and then select Create.

  4. Set up SQL Server connection:

    • Search for SQL Server in the upper right search bar, and then select SQL Server.

      Screenshot of selecting SQL Server.

    • Sign in, and then select Create.

    • Under Authentication type, select Microsoft Entra ID integrated.

      Screenshot of selecting Microsoft Entra ID integrated.

  5. Link connections to the connection reference in the default solution.

    • On the left navigation, select Solutions, and then select Default Solution.

    • In the left navigation, select Connection references, and then from the options, select Dataverse connection for Metrics Import Workflow.

      Screenshot of selecting connection references.

    • In the edit box that opens, select the Dataverse connection you created under the Connection dropdown.

      Screenshot of editing Dataverse connection.

    • In the left navigation, select Connection references, and then from the options, select SQL connection for Metrics Import Workflow.

    • In the edit box that opens, select the SQL Server connection you created under the Connection dropdown.

      Screenshot of editing SQL connection.

    • Select Save.

Set environment variables

Method 1

  1. In Power Pages, navigate to Solutions.

  2. A warning displays at the top stating 2 environment variables need to be updated. Select the link.

    Screenshot of environment variables link.

  3. In the Environment variables pane, select Next.

  4. Enter these values:

    • Sustainability data solutions Fabric database name from Lakehouse > Settings > About > Name
    • Sustainability data solutions Fabric server name from Lakehouse -> Settings > SQL Analytics Endpoint > SQL Connection String

    Screenshot of environment variables pane.

  5. Select Save and close. The warning should disappear.

Method 2

  1. Go to Default Solution and then in the left navigation, select Environment variables.

    Screenshot of environment variables.

  2. In Environment variables, select Sustainability data solutions Fabric server name. Under Current server value, select New server value. In Current server, enter the server’s name from Lakehouse > Settings > SQL Analytics Endpoint > SQL Connection String, and then select Save.

    Screenshot of editing server name.

  3. Similarly, in Environment variables, select Sustainability data solutions Fabric database name. In the Server dropdown, select Sustainability data solutions Fabric server name. Under Current database value, select New database value. In Current database, enter the database name from Lakehouse > Settings > About > Name, and then select Save.

    Screenshot of editing database name.

Next step