Skip to main content

Using the SUM-IT API from Power BI

This page describes the SUM-IT API Power BI template (.pbit). The template wraps the same REST API and OAuth client credentials flow documented under Authentication & API requests. Create your Client ID and Secret access key in the SUM-IT API screen before opening the template.

Download the template

FileDescription
sum-it-api.pbitPower BI template file. Opening it creates a new report; your credentials are not stored inside the template.

What is a .pbit file?

A Power BI template (.pbit) is a packaged report definition. It does not contain your data or secrets. When you open it, Power BI Desktop asks for parameters (for example API credentials and filters), then saves your work as a normal .pbix file that you own and can refresh.

Use the template in Power BI Desktop

  1. Download sum-it-api.pbit to your computer.
  2. Start Power BI Desktop.
  3. Open the template: FileImportPower BI template, choose sum-it-api.pbit, or double-click the file in Windows Explorer.
    Power BI will prompt you to save a new .pbix file—pick a name and location.
  4. When the parameters dialog appears, set at least the required values (see Template parameters for descriptions and First connection for the connector dialog, Load, and using project_id when it is not known yet). Optional parameters can be left empty if the template allows it.
  5. Wait for data load to finish. If a query fails, use Transform dataData source settings or the query error details to verify parameters and connectivity.
  6. Use Refresh when you want up-to-date data. The model uses the client credentials flow to obtain an access token; token lifetime follows the API (see the authentication page).

First connection

When the connector opens, fill in the parameters (including project_id, client_id and client_secret), then choose Load.

project_id is required. If you do not know the correct project identifier yet, enter 0 for the initial setup. After the first successful connection and data load, the model shows a list of projects—use it to find the ID you need, then set project_id to that value (HomeTransform dataEdit parameters in Power Query, or Edit parameters on the Home tab when Power BI offers it), apply, and Refresh so the report uses the intended project.

Edit Parameters — project_id and other fields in Power BI Desktop

SUM-IT API connector (client_id, client_secret) and Load

Template parameters

ParameterRequiredPurpose
client_idYesAPI Client ID from the SUM-IT API screen (same as in the REST examples). (Obtain Client ID and secret here.)
client_secretYesSecret access key for that client. (Obtain Client ID and secret here.)
project_idYesProject identifier for the data you want to load. If you do not know it yet, you can enter 0 for the first connection; after load, use the projects list to set the real ID (see First connection). Also required when loading project overview and progress data via the template.
proj_overview_from_date / proj_overview_to_dateNoOptional text date range for project overview queries (use the format expected by the API, e.g. ISO dates if applicable). See more details on Project overview.
proj_overview_custom_columnsNoOptional extra column selection for project overview when you need it. See more details on Project overview.
progress_completion_from_date / progress_completion_to_dateNoOptional text date range for progress / completion data. See more details on Progress.
progress_group_byNoHow to group progress data. Pick one value from the template’s dropdown (for example combining ORGANIZATION_ROLE, CONSTRUCTION_STAGE, UNIT_GROUP, TASK, UNIT in various levels—see parameter description when prompted). See more details on Progress.

Exact behavior of each query is defined inside the template’s Power Query (M) steps. To inspect or change them, open Transform data after the file has loaded.

The Power BI template calls the same endpoints documented here: