Set up scheduled Power BI reports

Modified on Thu, 22 Oct at 6:40 PM

Print

For TS to push scheduled updates to Power BI reports in your organization, the TS Autopilot needs access to your organization's Power BI API. This guide sets up that access. You only need it if you want to schedule Power BI reports.

Before you start

Steps 1 to 3 are one-time setups. Steps 4 and 5 are done for each report you want to schedule. Each step says who can do it:

  • Step 1: an IT admin
  • Step 2: a Power BI admin
  • Step 3: a Power BI Pro user
  • Step 4: the report owner, who must have a Power BI Pro licence
  • Step 5: any TS user with permissions for Activities

At least one user from your organization must have logged in to TS. The "Treasury Systems SaaS" app service principal then exists in your organization.

The Autopilot authenticates as that service principal, "Treasury Systems SaaS".

Steps

Step 1: Create a security group for the Autopilot

One-time setup, done by an IT admin. This creates a security group in Microsoft Entra ID that contains the service principal.

  1. Sign in to your Azure portal.
  2. Go to Microsoft Entra ID (formerly Azure Active Directory).
  3. Go to Groups.
  4. Select New group, then:

    1. Set the group type to Security and the group name to "TS Autopilot".
    2. Add yourself as owner.
    3. Add the application service principal "Treasury Systems SaaS" as a member of the group.
    4. The Members page of the Autopilot security group in Azure, listing Treasury Systems SaaS as a service principal

Step 2: Give the group access to the Power BI API

One-time setup, done by a Power BI admin. This gives the "TS Autopilot" security group access to the Power BI API in your organization.

  1. Sign in to Power BI.
  2. Select the settings icon (the cogwheel).
  3. Go to Admin portal.
  4. Go to Tenant settings.
  5. Scroll down to the Developer settings section.
  6. Enable Allow service principals to use Power BI APIs.
  7. Apply it to Specific security groups.
  8. Add the "TS Autopilot" security group you created in step 1.
  9. Select Apply.

    Tenant settings in the Power BI Admin portal, with a service principal setting applied to the Autopilot security group

Step 3: Create a workspace you share with the Autopilot

One-time setup, done by a Power BI Pro user. This creates a workspace that both you and the TS Autopilot can access.

Any report the Autopilot updates must be in a workspace that both the user and the Autopilot can access. Reports you created earlier in My Workspace can't be reached by the Autopilot.
  1. Sign in to Power BI.
  2. Select Workspaces.
  3. Select Create a workspace.
  4. Name it. This guide uses "TS-Shared".

    The Create a workspace panel in Power BI, with the name filled in

  5. Select Apply.
  6. In your workspace, select Manage access.

    The workspace toolbar in Power BI, with Manage access marked

  7. Add the "Treasury Systems SaaS" app as a member of the workspace.

    The Add people panel, with the Treasury Systems SaaS app found by name

Step 4: Export a report from TS to Power BI

Done for each report by the report owner, who must have a Power BI Pro licence. This exports a report from TS to Power BI, so the Autopilot can later update it on a schedule.

  1. In TS, create the report you want to export to Power BI.
  2. Set Report viewer to Power BI.
  3. Run the report.
  4. Choose your shared workspace ("TS-Shared"), and set the report to Create new.

    The Run as Power BI window with the shared workspace selected and Report set to Create new

  5. Select Run.
  6. Design the report in Power BI and save it.
  7. Run the report in TS again and select the report you just created. The report in TS is now linked to the report in Power BI.
  8. Don't skip this step: share the report with the Autopilot. Select Sharing on the Reports toolbar and give the Autopilot user the Read and Update permissions.

    The Report Permissions window in TS, with the Auto pilot role's permissions marked

Step 5: Set up the activity that updates the report

Done for each report by any TS user with permissions for Activities. This creates an activity setup that can be scheduled to update a Power BI report.

  1. Sign in to TS.
  2. Go to the Activities view.
  3. Create a new activity setup and choose the type Update Power BI Report.
  4. Give it a name and a description.
  5. Select the Power BI report it should update.
  6. Select Save.
  7. Test the activity by selecting Run.
  8. Schedule the Autopilot with the Scheduler in the Activities view.

Result

If the test run in step 5 succeeds, "ActivitySuccess" is logged in the activity history. Check that the Power BI report has been updated with the new data.

Related articles

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article

More in Reports

Still need help? Reach people who already know your configuration.

Submit a ticket