Skip to content

Power BI

Power BI is the most common way Ditio customers build their own dashboards — labor hours per project, machine utilization, absence overviews. Ditio provides a starter template (.pbit) that wires up authentication and the most-used data sets, so you can go from credentials to a working report without writing queries from scratch.

  1. API credentials — a client_id and client_secret created from Ditio Web (Authentication)
  2. An access token — either a long-lived token generated in the Ditio Web UI or one obtained via the client-credentials flow
  3. Power BI Desktop installed

Download the Power BI template (.pbit) from Ditio and open it in Power BI Desktop.

When you open the template, you’ll be prompted for these values:

ParameterDescriptionExample
FromDateStart date (ISO format, minimum yyyy-MM-dd)2026-01-01
ToDateEnd date (ISO format)2026-12-31
ProjectCompanyIdOptional — only needed if your organization has multiple companies in Ditio. Leave blank if unsure.(blank)

Date format examples:

  • Minimum: 2026-01-01
  • Detailed: 2026-01-01T12:30:00.000Z (UTC)

Unless you are targeting the test environment, you don’t need to change any URLs.

You’ll find the setting under the data source’s credential settings when configuring scheduled refresh.

The template authenticates with a bearer token. Two practical options:

  • Long-lived token from the Ditio Web UI — simplest for scheduled refresh; an administrator generates it on the integration page (these are audited)
  • Short-lived token via the client-credentials flow — more secure, but you need somewhere to run the token request and update the parameter

The template covers the common data sets. If you need a specific query shape — or a chunk-loaded query for a large date range — see Power Query Examples. For large exports and data warehouses, consider the paginated Data Extraction API instead of loading everything through Power Query.

IssueCauseFix
”Test connection failed” in the Power BI serviceBearer-token sources fail Power BI’s test-connection stepCheck Skip test connection — the refresh itself works
401 after some timeToken expiredGenerate a new token, or switch to a long-lived UI token for scheduled refresh
Timeouts on big date rangesToo much data in one requestUse the chunk-loaded queries in Power Query Examples, or narrow FromDate/ToDate
Empty tablesWrong environment or wrong companyVerify the URL parameter matches the environment your credentials were created in