Connect to Power BI

The following two endpoints are provided to connect to Power BI:

SQL Server

To connect Power BI to SQL Server, complete the following steps:

  1. Launch Power BI Desktop on your computer.

  2. Take actions according to the following two conditions:

    • If you are on the Home page, click the SQL Server as the data source.

      The SQL Server in the Home page.

    • If you are already in the report page, click Get Data in the ribbon on the Home tab. Then select SQL Server.

      Get Data > SQL Server.

  3. In the SQL Server database window, enter the Server and Database. To get the Server and Database, complete the following steps:

    1. Navigate to the Cloud Backup for Salesforce® interface.

    2. Click Data service.

    3. On the Data service page, click the More commands button on the upper right corner of the corresponding data service tile. Then select Get connection details.

    4. In the Connection details page, you can click the Copy button to copy the Server host name and Database of the SQL endpoint directly.

  4. Select Import as the Data Connectivity mode, and click OK. Then refer to Generate a Data Report in Power BI to generate and publish a data report in Power BI.

    If it’s your first time to connect to the database, complete the following steps for authentication:

    1. In the window for authentication, click Database.

    2. Enter the User name and Password for authentication. To grant access to users to the SQL Server database, refer to Manage Users.

    3. Select the option including both the server and database as the level to apply the settings.

    4. Click Connect.

OData Feed

To connect Power BI to OData Feed, complete the following steps:

  1. Launch Power BI Desktop on your computer.

  2. Take actions according to the following two conditions:

    • If you are on the Home page, click Get data from other sources. Then search and select OData Feed as the data source. Click Connect.

      Search and select OData Feed.

    • If you are already on the report page, click Get Data in the ribbon on the Home tab. Then select OData feed.

      Get Data > OData feed.

  3. In the OData feed window, enter the URL. To get the URL, complete the following steps:

    1. Navigate to the Cloud Backup for Salesforce® interface.

    2. Click Data service.

    3. On the Data service page, click the More commands button on the upper right corner of the corresponding data service tile. Then select Get connection details.

    4. In the Connection details page, you can click the Copy button to copy the URL of the OData endpoint directly.

  4. Select Import as the Data Connectivity mode, and click OK. Then refer to Generate a Data Report in Power BI to generate and publish a data report in Power BI.

    *Note: If it’s your first time to connect to the OData feed, complete the following steps for authentication:

    1. In the window for authentication, click Base.

    2. Enter the User name and Password for authentication. To grant access to users to the OData feed, refer to Manage Users.

    3. Select the option including the OData feed URL as the level to apply the settings.

    4. Click Connect.

Generate a Data Report in Power BI

After connecting your Salesforce backup data to Power BI, complete the following steps to generate a data report in Power BI:

  1. After connecting your Salesforce backup data, select the tables in the left pane and click Transform Data. The Power Query Editor window appears.

    Transform Data.

  2. In the Power Query Editor window, click Source in the APPLIED STEPS section.

    Source.

  3. Then click the drop-down list of the Item column and use Text filters > Ends with to filter the data.

    Text filters > Ends with.

  4. In the Filter Rows window, enter an object to filter the data.

    Enter an object to filter the data.

  5. Click to select the Data column and click Remove Other Columns.

    Remove Other Columns

  6. Click the Expand button of the Data column. Then select some necessary columns such as DataServiceGenerateTime, Id, AccountId, Name, StageName, Amount, CloseDate, ForecastCategory, OwnerId, CreatedDate, LastModifiedDate, FiscalQuarter, FiscalYear, and Fiscal. Then, uncheck the Use original column name as prefix option and click OK.

    The Expand icon and the Use original column name as prefix option.

  7. Click to select the Amount column and change the Data type to Decimal Number.

    Data type > Decimal Number.

  8. Click to select the LastModifiedDate column and change the Data type to Date/Time.

    Data type > Date/Time.

  9. Rename the table to the corresponding object.

    Rename the table.

  10. In the Home tab of the ribbon, click Close & Apply. Wait to load data.

    Close & Apply.

  11. Click the Opportunity table in the right pane and click New column in the ribbon.

    The Opportunity table and the New column button.

  12. Enter the following formula to the text box and change its format to Short Date.

    JobDate = DATE(MID([DataServiceGenerateTime], 1, 4),MID([DataServiceGenerateTime], 5, 2),MID([DataServiceGenerateTime], 7, 2))

    Enter the formula.

    Short Date.

  13. In Visualizations, click the Line chart button to create a line chart.

    Line chart.

  14. Select the newly created JobDate column to add it to the X-axis field. Then right-click the field and select JobDate.

    Add JobDate to the X-axis field.

  15. Select the Amount column to add it to the Y-axis and then resize the chart.

    Add Amount to the Y-axis field.

  16. In Visualizations, click the Format your visual button. Then change the Type in the X-axis section to Categorical, and enable Data labels and Total labels.

    The Visualizations section.

  17. Click Save to save the report and then click Publish to publish it to Power BI.

    Save and publish the report.

  18. After successfully publishing the report to Power BI, click the option in the window to open it directly in Power BI.

    Open the report in Power BI.

    Published report in Power BI.