Skip to content

Add Pixies to your reports

BI Pixie Desktop (bi-pixie.exe) adds Pixies to the Power BI reports in a folder on your computer. Pixies are small, hidden Power BI visuals and measures that send BI Pixie what people do in a report: the pages they open, the visuals and links they select, and the filters they use. Your viewers do not see them. You can add Pixies as part of your publishing process or release pipeline, and run the tool again whenever your reports change.

BI Pixie Desktop is the new name of BI Pixie Instrumentation. The file is still named bi-pixie.exe. Version 3.1.2 and earlier end a run with the log line “BI Pixie Instrumentation is completed”. Later versions end it with “BI Pixie Desktop has finished”. The default commit message is still “BI Pixie instrumentation”.

This article describes version 3.1.2 of BI Pixie Desktop.

Prerequisites

Download and check BI Pixie Desktop

  1. On the Downloads page, select the latest release, bi-pixie-3.1.2.zip.
  2. If your browser holds the download, keep it. Some browsers, Google Chrome among them, warn about any file that few people have downloaded yet. In Chrome on Windows, the file name appears crossed out in the download list, with the line "Chrome blocked this download because the file isn't commonly downloaded and it may be dangerous." You can keep the file from the menu beside it in Chrome's download history (Ctrl+J), and confirm that it is ours with the checksum steps below.
  3. Unzip the file and save bi-pixie.exe on the computer.
  4. In the folder that holds bi-pixie.exe, run the following command in the Command Prompt:
    certutil -hashfile bi-pixie.exe SHA256
  5. Compare the result with the checksum of this release:
    784895296be99b373937118964ad19fc64677d093f303d421cbf0e9f3ba2cb80
    The checksum is also published as the file bi-pixie-3.1.2.exe.sha256 on the Downloads page.
  6. To confirm the signature, open the properties of bi-pixie.exe in File Explorer and select Digital Signatures. The signer is DataChant Consulting LLC, the company behind BI Pixie. In PowerShell, Get-AuthenticodeSignature .\bi-pixie.exe reports the signature as Valid.

If your organization does not allow keeping a file that a browser held, your IT team can approve bi-pixie.exe by its signer or by its checksum.

Create the settings files

BI Pixie Desktop reads its settings from bi_pixie_config.json in the folder of your reports. The first time you run it on a folder, it creates the file and stops, so that you can fill it in. It does not add Pixies on that run.

  1. Open the Command Prompt.
  2. Run the tool with the folder of your reports:
    bi-pixie.exe "C:\Reports\Finance"
    If you run it without a folder, the tool uses the current folder. You can also copy bi-pixie.exe into the folder of your reports and double-click it.
  3. Wait for the last line, It is time to configure BI Pixie.
A Command Prompt window showing the first run of bi-pixie.exe. The log reports that bi_pixie_config.json was not found and was created, processes four report folders, updates their configuration files, and ends with It is time to configure BI Pixie.

The tool looks for Power BI projects up to three folders deep, so you can group your reports in subfolders. The folder now holds two files:

  • bi_pixie_config.json holds the settings for every report in the folder.
  • bi_pixie_config_details.json holds settings for individual reports, which override the settings in bi_pixie_config.json. You do not need to change it to add Pixies.

Fill in the settings

Open bi_pixie_config.json in a text editor, such as Notepad or Visual Studio Code, and replace the values in square brackets in the following settings.

Setting What to enter
project_name A name for the reports in this folder, such as your team, business unit or project. For example, "finance reports".
subscription_email The email address you gave when you registered for your BI Pixie license.
license_key Your BI Pixie license key.
starter_deployment false for the Azure deployment, or true for the Power Platform deployment.
pixies_flow_endpoint_url The event address of your deployment. For the Azure deployment, enter https://[your function app].azurewebsites.net/api/send_event?code=[your function key]. If your deployment has a web application firewall, enter your own host name in place of the function app address, with the same function key. For the Power Platform deployment, enter the URL of the BI Pixie Web Trigger flow.
pixies_inventory_flow_url For the Power Platform deployment only, the URL of the BI Pixie Web Trigger Inventory flow. The Azure deployment does not use this setting.
pixies_inventory_endpoint_url Optional, for the Azure deployment from version 1.7.0 of the deployment template. Leave it empty unless you want links to open only from the reports you add Pixies to with link tracking on. Before you fill it in, read Limit links to the reports that track them.

Here is the part of the file to fill in for the Azure deployment, before and after:

"subscription_email": "[Enter the email address you provided for the trial or subscription]",
"license_key": "[Enter the license key you received from us]",
"project_name": "[Enter your project name]",
"pixies_flow_endpoint_url": "[Enter the endpoint url]",
"starter_deployment": true,
"subscription_email": "bob@acme.com",
"license_key": "12345678-ab12-123b-4444-12345678abcd",
"project_name": "finance reports",
"pixies_flow_endpoint_url": "https://[your function app].azurewebsites.net/api/send_event?code=[your function key]",
"starter_deployment": false,

If project_name, subscription_email or the setting your deployment needs to send events (pixies_flow_endpoint_url for the Azure deployment, pixies_inventory_flow_url for the Power Platform deployment) is still empty or still in square brackets, the tool stops before it changes any report, with exit code 8, and names the setting:

The setting 'project_name' in bi_pixie_config.json is not filled in. Fill it in and run BI Pixie again. No report was changed.

Feedback, surveys, the visual clicks heatmap and other options have settings of their own. For every setting, see Configure BI Pixie Desktop.

Add Pixies

  1. Save bi_pixie_config.json.
  2. Run the tool on the same folder again:
    bi-pixie.exe "C:\Reports\Finance"
  3. Read the license details at the start of the run, then the progress for each report.
  4. Publish the reports to your Power BI workspaces as you usually do.
A Command Prompt window showing a later run of bi-pixie.exe. After a successful license check, the log processes four reports page by page, reports each page as cleaned successfully, and ends by saying BI Pixie automation is completed.

The tool scans each report, page and visual for links, filters, slicers, bookmarks, tooltips and drill-through pages, and adds Pixies for them to the report and its semantic model. It groups the Pixies so that your BI team can find them.

When the tool could not add Pixies to one or more reports, the last line names those reports and the run ends with exit code 7. The other reports have their Pixies. The error for each report is in the log.

After it updates the reports, the tool sends BI Pixie the list of those reports, so that your dashboard lists them. When the address in pixies_flow_endpoint_url (or pixies_inventory_flow_url for the Power Platform deployment) cannot be reached, the tool still saves its settings and still commits to Git when Git is on. The last line names the address, the run ends with exit code 9, and the details are in bi-pixie-debug.log. Run the tool again once that address can be reached:

The reports were updated, but BI Pixie could not send the list of reports to contoso-pixie.azurewebsites.net. Check that this computer can reach contoso-pixie.azurewebsites.net, then run BI Pixie again. The details are in bi-pixie-debug.log.

Update Pixies after your reports change

To update Pixies, run bi-pixie.exe on the folder again. Each run removes the Pixies of the previous run and adds them again from the current report, so a new page, slicer or bookmark gets its Pixies. Run it again also when you change a setting, for example to move your reports to a new event address in pixies_flow_endpoint_url.

Remove Pixies

  1. In bi_pixie_config.json, set clean_only to true.
  2. Run bi-pixie.exe on the folder.
  3. For each report, read the line that ends All pixies are gone as you have requested.

A few small traces of BI Pixie stay in the report files. To remove every trace, keep your reports in source control and revert the changes the tool made.

Get help on the command line

Run bi-pixie.exe --help to see how to run the tool, where it reads its settings and where it writes its log files. -h and /? do the same. The tool then stops without changing anything.

Which license keys work

Each run checks your license with BI Pixie before it changes any report. The tool signs in to BI Pixie with your Azure CLI sign-in, so the person who runs it must belong to the organization that holds the license. The tool accepts two kinds of license keys:

  • A self-hosted license. The license key you received for BI Pixie self-hosted.
  • A license of your BI Pixie account. If your organization has a BI Pixie Cloud or Fabric workload account on the Enterprise plan, you can use one of its licenses. An account administrator can use any license of the account. A member can use only the license the account assigns to them. A report counts once toward the license, whether you added its Pixies with BI Pixie Desktop, in BI Pixie Cloud or in the workload.

With a license of your BI Pixie account, you can choose whose tracking setup the run uses, in the tracking_setup setting:

  • "local", the default, uses the settings in bi_pixie_config.json.
  • "account" uses the tracking setup saved in your BI Pixie account for each workspace, so the reports get the same tracking options as the reports you add Pixies to in BI Pixie Cloud or the workload.

The first lines of each run say which setup it uses: This run uses the tracking setup of your BI Pixie account. or This run uses the tracking setup in bi_pixie_config.json. A self-hosted license always uses the settings in bi_pixie_config.json.

When the license check stops the run

When the license check fails, the tool changes no report and ends with exit code 2. The message says what to do:

  • No BI Pixie license has the key ending, followed by the last characters of your key. The license key is not one you can use. Check license_key in bi_pixie_config.json. The same answer comes when the key belongs to another organization, or when you are not one of the people the license allows, so that a key never reveals whose license it is.
  • Your BI Pixie license is suspended. The license was stopped, for example because it was revoked. Contact BI Pixie support at the address in the message.
  • Your BI Pixie license expired. Contact BI Pixie support at the address in the message to renew it.
  • This license covers, followed by a number of reports. This run would pass the number of reports your license allows. An administrator of your BI Pixie account can raise the limit, or you can run the tool on fewer reports.
  • This version of the BI Pixie tool is no longer supported. Download the current version from the Downloads page and run it again.
  • BI Pixie could not get your Azure sign-in. Install the Azure CLI if it is missing, run az login with your work account, and run the tool again.
  • The license answer was changed on its way to this computer. If your organization inspects network traffic, ask your network team to let ctl.bipixie.com through unchanged. If your network uses its own certificate authority, enter the path of its PEM certificate in company_ca_certificate_path.

When the check succeeds, the log shows your license details: the license type, the days left and the end date, and which features the license includes.

From version 1.7.0 of the Azure deployment, BI Pixie can open links only from the reports you added Pixies to with link tracking on. When a viewer selects a link that names any other report, BI Pixie shows a page saying the link cannot be opened. Limiting links to tracked reports needs nothing on the install form, and you create no storage and grant no role for it.

This limit is optional. While pixies_inventory_endpoint_url is empty, links in every report with Pixies open to any website, as before. Once you set it, the limit starts with the first run that sends BI Pixie its list of reports. From then on, BI Pixie opens links only from the reports that BI Pixie Desktop last added Pixies to with link tracking on. Links in every other report with Pixies stop opening, including reports you added Pixies to before version 1.7.0. To keep those links working, include every report that uses link tracking in that first run, with link tracking on. You do not write a list of reports or websites anywhere: running the tool on a report is what lets its links open.

  1. Copy the address of your deployment's send_inventory function, with its function key. See Getting the send_inventory function URL.
  2. In bi_pixie_config.json, enter that address in pixies_inventory_endpoint_url. A file created by a recent version of the tool already holds the setting, empty. In an older file, add the line:
    "pixies_inventory_endpoint_url": "https://[your function app].azurewebsites.net/api/send_inventory?code=[its function key]",
  3. Run bi-pixie.exe on every report whose links must keep opening, with link tracking on. A report has link tracking on when at least one of the four add_redirects_ settings is true for it. See Choose what Pixies track. For each report it updates, the tool tells send_inventory whether link tracking is on, together with the list of reports it sends to BI Pixie on every run.

Until BI Pixie Desktop first sends its list of reports to send_inventory for your license, BI Pixie opens links from every report, as it did before version 1.7.0, so installing version 1.7.0 never stops a link by itself. To let a report you add later open its links, run the tool on that report with link tracking on.

The tool records that a report does not track link clicks only when it saves the report to the Power BI service itself, for example when it takes the report from a Fabric workspace. When the tool only writes report files on your computer, it can record that a report tracks link clicks, and it leaves a report that already tracks them as it was.

If you never fill in pixies_inventory_endpoint_url, nothing changes: BI Pixie opens links from every report, and the tool sends its list of reports to pixies_flow_endpoint_url.

When a report tracks link clicks, a link that a viewer selects goes through your BI Pixie event address on its way to the website. If you entered websites in Allowed link destinations when you installed BI Pixie on Azure, your event address opens only links to those websites:

  • A link to a website on the list opens as usual, and the click is counted.
  • A link to any other website shows a page saying that the link cannot be opened, and the click is not counted.
  • A link that hides its real destination behind unusual characters is refused the same way.

BI Pixie Desktop writes the event address from pixies_flow_endpoint_url into every Pixie it adds, so the list covers every report you add Pixies to with the tool. You do not set anything in bi_pixie_config.json for it. Before you add Pixies to a report whose links lead to other websites, check that those websites are on the list.

You choose the list on the Network tab of the install form, one website on each line. A website name, such as contoso.com, also allows its subdomains. When the field is empty, links open to any website. See Allowed link destinations.

When you also limit links to the reports that track them, BI Pixie opens a link only when both conditions hold: the report tracks link clicks, and the website is on the list. When the list is empty, only the report check applies.

Read the log files

The tool writes its log files to a folder of your own user profile, never to the folder it runs from, so a log file is never shared, synced or committed with your reports. On Windows the folder is %LOCALAPPDATA%\BI Pixie\logs. The first line of every run names the folder. To keep the logs elsewhere, set log_folder in bi_pixie_config.json to a folder path.

  • bi-pixie.log holds the information and error lines.
  • bi-pixie-debug.log also holds the detailed lines that BI Pixie support reads.

Each run adds to the same files. No log line contains your license key: the tool writes <license key> in its place, so you can send the files to BI Pixie support as they are. If a run fails, attach both files to a ticket on the support page.

Exit codes

A script or release pipeline that runs the tool can read its exit code:

  • 0: the run completed.
  • 1: an unexpected error. The log holds the details.
  • 2: the license check stopped the run.
  • 3: the folder holds no Power BI projects.
  • 4: the tool could not clone or pull your Git repository.
  • 5: the tool could not commit or push to your Git repository.
  • 7: the tool could not add Pixies to, or remove them from, one or more reports.
  • 8: a setting in bi_pixie_config.json is not filled in.
  • 9: the tool updated the reports but could not send the list of reports to BI Pixie.

Considerations and limitations

  • BI Pixie Desktop runs on 64-bit Windows.
  • BI Pixie collects viewer user names only when include_user is true in bi_pixie_config.json. It then keeps the email address, or a masked ID when MASK_USER_NAME is true on the function app. When include_user is false, BI Pixie counts viewers by a masked IP address.
  • From version 3.1.0, the tool adds Pixies to the phone layouts of your reports. An earlier version stops with an error on a report whose phone layout has Pixies from BI Pixie Cloud or the workload, so run version 3.1.0 or later on those reports.
  • The list of allowed link destinations is chosen when BI Pixie is installed and cannot be changed afterwards.
BI Pixie Desktop checks your license with BI Pixie at ctl.bipixie.com on every run. Make sure the computer can reach that address.