Custom template modifications (Power BI)
You can adjust the shipped template when one set of parameters is not enough—for example, to compare project overview (or progress) across two projects in the same report. The template normally binds project_id (and related filters) to a single value from the parameter dialog; duplicating a query and fixing the project id in Power Query lets each copy load a different project.
Workflow (Power Query)
- In Power BI Desktop, open your report (the
.pbixyou saved from sum-it-api.pbit). - Open the editor: Transform data → Transform data (this opens Power Query Editor).
- In the Queries pane on the left, select the query you want to branch—for example
project_overvieworprogress. - Duplicate the query: right‑click the query → Duplicate.
- Rename each duplicate so you can tell them apart in the model and in visuals—for example
project_overview_project_name_1andproject_overview_project_name_2(use names that match your projects). - For each duplicated query, open Advanced Editor and pin the project to a specific id:
- Find the line that reads:
ProjectId = Text.From(project_id) - Replace it with a literal id taken from your
projectsquery or from the SUM-IT UI—for example:whereProjectId = Text.From(111)111is the numeric project id you want that query to use.
- Find the line that reads:
- Close & Apply so Power BI loads the queries. After you finish and save, each duplicated query appears as its own table in the report’s data model. You can then build visuals, measures, and relationships using those tables side by side—for comparisons, slicers, or separate pages.
Notes
- Duplicate
project_overviewwhen you need multiple overview datasets; duplicateprogressthe same way when you need multiple progress datasets bound to different projects. - Keep authentication and other shared steps unchanged unless you know you need a different data source or scope.
- If you only ever need one project at a time, you do not need this workflow—the template parameters are enough.