Skip to main content

Power BI

Connect Microsoft Power BI to Matidor with your API key and build reports on projects, work, budgets and costs that update when you click Refresh.

Written by Victor Raziel Aguilar Garcia

See your Matidor projects, work, budgets and costs in Microsoft Power BI. Once it's set up, your report updates with the latest Matidor data each time you click Refresh.

Who can do this: Anyone with Power BI Desktop. A Workspace Manager needs to create the API key.

Time needed: About 15 minutes.

Before you start

You need two things:

  1. Power BI Desktop. It's free. Download it from the Microsoft Store.

  2. A Matidor API key. This works like a password that lets Power BI read your Matidor data.

    • If you're a Workspace Manager, go to Settings > Personal settings in Matidor and click Create API key, then Copy.

    • If you're not, ask your Workspace Manager to send you one.

The API key field under User Preferences in Personal settings.

Keep your API key private. Anyone who has it can read your workspace's data. Don't put it in emails, chats or shared files. If it's shared by mistake, delete it in Personal settings and create a new one.

Step 1: Save your API key in Power BI

You only do this once per report.

  1. Open Power BI Desktop and click Blank report.

  2. On the Home tab, click Transform data. A new window opens. This is called the Power Query Editor.

  3. On the Home tab of this new window, click Manage Parameters, then New Parameter.

  4. Fill in the boxes:

    • Name: type MatidorApiKey, exactly like this, with no spaces.

    • Type: choose Text.

    • Current Value: paste your API key.

  5. Click OK.

Step 2: Add your Matidor data

Do this once for each type of data you want: work, projects, budgets or costs.

  1. Still in the Power Query Editor, click New Source on the Home tab, then Blank Query.

  2. Click Advanced Editor.

  3. Delete everything in the box.

  4. Copy the code below and paste it into the box.

let
/* 1. Change "work" to "projects", "budgets" or "costs" for other data */
DataType = "work",

/* Nothing below needs to change */
BaseUrl = "https://core.matidor.com",
GetPage = (PagePath as text, PageQuery as record) =>
Json.Document(Web.Contents(BaseUrl, [
RelativePath = PagePath,
Query = PageQuery,
Headers = [Authorization = "Bearer " & MatidorApiKey]
])),
NextPage = (Page as record) =>
let
Link = Record.FieldOrDefault(Page, "@odata.nextLink", null),
Parts = if Link = null then null else Uri.Parts(if Text.StartsWith(Link, "http") then Link else BaseUrl & "/" & Text.TrimStart(Link, "/"))
in
if Parts = null then null else GetPage(Text.TrimStart(Parts[Path], "/"), Parts[Query]),
Pages = List.Generate(
() => GetPage("api/public/v2/bi/all-projects/" & DataType, []),
each _ <> null,
each NextPage(_)
),
Rows = List.Combine(List.Transform(Pages, each Record.FieldOrDefault(_, "value", {}))),
Columns = List.Distinct(List.Combine(List.Transform(Rows, Record.FieldNames))),
Data = Table.FromRecords(Rows, Columns, MissingField.UseNull),
ShowNames = (v) =>
if v is record then Record.FieldOrDefault(v, "name", Record.FieldOrDefault(v, "id", null))
else if v is list then Text.Combine(List.Transform(v, each if _ is record then Text.From(Record.FieldOrDefault(_, "name", null)) else Text.From(_)), ", ")
else v,
Result = Table.TransformColumns(Data, List.Transform(Columns, (c) => {c, ShowNames}))
in
Result
  1. Look at line 3. It says DataType = "work". If you want a different type of data, change the word between the quotes:

  • "work" for work items

  • "projects" for projects

  • "budgets" for budgets

  • "costs" for costs

  1. Click Done.

  2. On the left, under Queries, give the query a clear name, such as Work.

Step 3: Answer the two pop-up messages

The first time Power BI connects, it asks two questions.

"Please specify how to connect" (or a yellow bar that says Edit Credentials)

  1. Click Edit Credentials.

  2. On the left, choose Anonymous. Power BI already sends your API key from Step 1, so it doesn't need a separate sign-in.

  3. Click Connect.

"Privacy levels"

  1. In the drop-down next to https://core.matidor.com, choose Organizational.

  2. Don't tick Ignore Privacy Levels.

  3. Click Save.

You should now see your Matidor data in rows and columns.

Step 4: Load the data and build your report

  1. Repeat Step 2 for any other data you want, for example projects and costs.

  2. Click Close & Apply in the top left corner.

  3. Your data now appears under Data on the right side of Power BI. Drag fields onto the page to build charts and tables.

  4. Save your report.

A Power BI report built from Matidor costs data.

To get the latest data at any time, click Refresh on the Home tab.

Understanding your data

  • Column names match your Matidor field names, written without spaces. For example, a field called "Due date" becomes dueDate.

  • Columns ending in (P) come from the project the item belongs to. Columns ending in (B) come from the budget. For example, title(P) in your costs is the project name.

  • To connect two tables, for example costs to projects, go to Model view (the third icon on the left side) and drag title(P) in costs onto title in projects. This works best when every project has a different name.

  • Archived projects are included. The active column shows false for them. To hide them, filter active to true.

  • All records are included. Matidor sends large amounts of data in pages, and the code collects every page for you.

Share your report with your team

Option 1: Publish to Power BI online (recommended)

  1. Click Publish on the Home tab and choose a workspace.

  2. In Power BI online, open the workspace and find your report's semantic model (the item with the database icon).

  3. Click the three dots (...), then Settings.

  4. Under Data source credentials, click Edit credentials:

    • Authentication method: Anonymous

    • Privacy level: Organizational

    • Tick Skip test connection.

  5. Click Sign in.

  6. Under Refresh, turn on scheduled refresh and pick a time, for example every morning.

  7. Share the report with your team. They can view it without an API key.

Option 2: Send a template (for people who need to edit the report)

A template is a copy of your report's pages and setup without the data.

  1. Click File > Export > Power BI template.

  2. Send them the .pbit file.

  3. When they open it, Power BI asks for MatidorApiKey. They delete what's in the box, paste their own key, and click Load. Then they answer the two pop-ups from Step 3.

Keep your key out of shared files. Your .pbix report file contains your API key, and a template can still have it filled in. Only send these files to people who are allowed to see the same data, and ask them to replace the key with their own.

Something not working?

What you see

What to do

"We couldn't authenticate with the credentials provided"

Your key is wrong or was deleted. In the Power Query Editor, click MatidorApiKey on the left and paste a fresh key. Then go to File > Options and settings > Data source settings, select core.matidor.com, click Edit Permissions, and make sure it's Anonymous.

A Privacy levels message

Choose Organizational and click Save (see Step 3).

A column is empty

The field may be named differently. Check the field's name in Matidor, then look for the matching column (written without spaces).

Refresh fails in Power BI online

Repeat step 4 of Option 1 and make sure Anonymous, Organizational and Skip test connection are set.

"The column '@odata.nextLink' of the table wasn't found"

Your report uses the older setup. See "Updating an older report" below.

It takes a long time

Large workspaces can take a few minutes. Wait for it to finish.

Updating an older report

If you set up Power BI using the previous version of this article, your report may not get every record, and it may not refresh in Power BI online.

  1. Click Transform data.

  2. Do Step 1 above to save your key as MatidorApiKey.

  3. Select your old Matidor query and click Advanced Editor.

Right-click your old Matidor query and select Advanced Editor.

  1. Look for the address it uses, for example .../all-projects/work. Note the last word.

The old Source line. The last word of the address, here work, is the data type.

  1. Replace everything with the code in Step 2, and set line 3 to that word.

  2. Click Done, then Close & Apply.

  3. If a chart shows an error, a column name may have changed. Click the chart and drag the matching column back in.

Any changes you made to the old query, such as renamed or removed columns, need to be done again.

Related articles

Last verified: November 2026

Did this answer your question?