Test your reports with Pixies
At this stage you have already run BI Pixie Desktop (bi-pixie.exe), and it has added Pixies to the reports in your Power BI project files. In this article, you test that BI Pixie tracks usage from those reports.
Audit the changes
Before you publish the reports, you can use source control tools like GitHub to inspect the changes in the semantic models and reports. While it is not required to inspect the changes, it is recommended to do so. If you use source control tools with your Power BI project files, we recommend you follow these best practices:
- Check for errors in bi-pixie.log, in the log folder that the first line of the run names. If you see the line "INFO - BI Pixie Desktop has finished. The Pixies are ready to track user engagement in your Power BI reports." and if there are no "ERROR" lines in the log file, commit the changes in your source control tool and proceed to step 3. Version 3.1.2 and earlier write "INFO - BI Pixie Instrumentation is completed. The pixies are ready to track user engagement in your Power BI reports." instead.
- In case of errors, use the source control tool to revert back the changes and contact us if the error message is not clear and actionable.
- In case there are no errors, view the Pixies in your source control tool and publish the modified reports and semantic models using Power BI Desktop publish command or through the supported API or source control tools.
We designed BI Pixie to balance three needs. First, the consumers of the reports should have a seamless experience without noticing the Pixies in their reports. Second, your report developers should be able to keep working on the reports without interruption by the Pixies. Third, your team should be able to review the Pixies and audit the reports to ensure that the Pixies work as expected.
To meet these three needs, BI Pixie builds each Pixie from two elements:
- Table visuals that are stored in one of the four corners of the report pages with a width and height of one pixel. Every report page can have multiple tables. These tables are all stacked on top of each other and are grouped together.
- Dynamic measures that are stored under the same folder and are all set as hidden measures.
You can find the Pixies in Power BI Desktop. To start, open one of the Power BI project files with Pixies in Power BI Desktop. Select the View tab, and open the Selection pane. At the bottom of the Selection pane you can find a group of visuals that are named {BI Pixie}. Expand that group and explore the Pixie visuals.
Select one of the visuals under {BI Pixie} group. You can now open the Build pane to see that the visual is a table visual. In the Format pane under Visual tab, expand the Size and position. You can now see that the visual's width and height are set as 1 pixel.
Open the Build pane of one of the Pixie visuals under {BI Pixie}. You can see that it has a measure under Columns section.
Open the Data right pane, and select the ellipsis of the first table. In the drop-down menu, select View hidden.
Expand the first table in the Data pane and find {BI Pixie} folder. You can expand {BI Pixie} folder to view all the hidden measures that BI Pixie Desktop has added.
Note: In the bi_pixie_config.json file, you can choose a name other than {BI Pixie} for the group of Pixie visuals and for the folder of hidden measures. Configure BI Pixie Desktop describes these names.
After you find the Pixies in Power BI Desktop, you can verify that BI Pixie stores the events: in the BI Pixie Events Dataverse table of a Power Platform deployment, or in the storage account of an Azure deployment.
Verifying that raw events are stored
You can verify that BI Pixie tracks the reports with Pixies by looking at BI Pixie storage.
Verify the events in Power Platform deployment
Go to https://make.powerapps.com, and in the environments drop down select the environment you use for BI Pixie, as described in Deploy BI Pixie on Power Platform. Select Tables on the left sidebar. Select All, and enter BI Pixie in the search bar. Select the BI Pixie Events table.
Select Edit.
Sort the table by Created On column in descending order. Verify that you see records with your report name. The Report field will include the name of your report. The Page field will include the first page. When include_user is true, the Username field includes your user name in a Domain\user format.
Now move to the second page in the Power BI Desktop and refresh the BI Pixie Events Dataverse table to ensure that the second page is tracked.
If you don't see any events in BI Pixie Events table, go to BI Pixie Web Trigger cloud flow and check the run history for errors. Go through this guide from the beginning and confirm you didn't miss any step. The BI Pixie support page lists how to reach us.
If you see the events in BI Pixie Events table, you can now test if the events are tracked when the report is consumed in Power BI service. Publish the report with Pixies to the Power BI service and open the report in its workspace. Navigate through the pages and interact with the visuals, slicers and bookmarks. Check the BI Pixie Events table and confirm you see new events. This time, when include_user is true, the events include your email address in the Username column. BI Pixie collects viewer user names only when include_user is true in bi_pixie_config.json, and 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, it counts viewers by a masked IP address.
Verify the events in Azure deployment
After you open and interact with one of the reports with Pixies, you can verify that the events are collected and stored using Microsoft Azure Storage Explorer or Azure Portal. Open the BI Pixie storage account that you deployed and follow these steps:
- Open
bipixielakecontainer. - Open the folder with your license key as its name.
- Open
inventoryfolder. - Open the folder that is named as your project name (As you defined it in
bi_pixie_config.json). - Open the latest json file and confirm it contains your reports with Pixies.
- Go back to the parent folder with your license key as its name.
- Open
eventsfolder. - Open the sub folder that is named as the workspace or project name.
- Open the sub folder that is named as the report name
- Open the sub folder named after the user, or after a masked ID when
MASK_USER_NAMEistrue. - Open the latest .tsv file and find logs at the end of the file with data that matches your interactions.