Add Embedded Surveys to your Reports
With BI Pixie you can embed surveys in your target Power BI reports and collect feedback from your BI audience. This article describes how you configure BI Pixie Desktop (bi-pixie.exe) to embed a survey in your target reports.
The Survey Page
The embedded survey page is a native Power BI page that BI Pixie Desktop can add to your target reports. The survey page consists of built-in slicers that contain customized questions and answers, and from the answers you learn the following about your end-users:
- How likely report viewers are to recommend the reports to colleagues. BI Pixie calculates the NPS (Net Promoter Score) from the answers and shows it in the BI Pixie Dashboard.
- The estimated monthly financial benefit of each report.
- How much time your reports save report viewers.
- Whether your reports make decisions faster or slower.
- The main technical issues report viewers experience.
Setting Up The Embedded Survey
BI Pixie Desktop keeps its two configuration files, bi_pixie_config.json and bi_pixie_config_details.json, in its target folder, which by default is the folder that holds bi-pixie.exe. BI Pixie creates both files the first time you run bi-pixie.exe, as described in Add Pixies to your reports.
To embed the survey page as the last page of every target report, with the same survey in each, open the global configuration file, bi_pixie_config.json.
To embed the survey in some reports only, or to customize the survey for specific reports, open bi_pixie_config_details.json.
Important Note: To change any survey setting on reports that already have Pixies with the embedded survey, first clean the reports by running BI Pixie Desktop in clean_only mode with this setting:
"clean_only": true After the clean_only run completes, you can change the survey settings as described in this section. To add the Pixies back, set clean_only to false before you run BI Pixie on the target reports again.
Enable The Embedded Survey
The embedded survey is off by default. To turn it on, set the survey_enabled field to true under the collect_survey_feedback parameter:
"collect_survey_feedback": {
"survey_enabled": true,
...
} If the default survey settings suit your reports, no further change is needed. The next time you run BI Pixie Desktop, BI Pixie adds the survey page to your target reports.
Customizing the Survey
In the following screenshot, every element of the embedded survey that you can customize carries a number.
Page name and Header title (Element 1)
The embedded survey is added as the last page of the target reports. By default, the Survey's page name is "Share Feedback". You can customize it by updating the value of the survey_page_title field below. The same label will be used as the title at the header of the page.
"collect_survey_feedback": {
...
"survey_page_title": "Share Feedback",
...
} Survey description and instructions (Elements 2 & 3)
The header of the survey page includes two sentences. To customize the first sentence, change the value of the parameter survey_page_description. To customize the second sentence, change the value of the parameter survey_page_instructions.
"collect_survey_feedback": {
...
"survey_page_description": "We appreciate your time in helping us improve this report! Let us know how we're doing!",
"survey_page_instructions": "Simply click on the slicers below to share your feedback. Your selections will be sent automatically. There is no submit button. Your feedback is captured in real time!",
...
} Progress gauge (Element 4)
At the top right of the survey page, report viewers see a gauge of their progress. The gauge starts at 0% before any answer is given, and reaches 100% when every question is answered. By default the label is "% Completed". To customize the label, update the survey_progress_gauge_title parameter.
"collect_survey_feedback": {
...
"survey_progress_gauge_title": "% Completed",
...
} Thank you label (Element 5)
When all the questions are answered, the gauge will show 100% and a Thank You label will appear at the footer of the survey. By default the label is "Thank you for the feedback!". To customize the label, update the survey_thank_you_title parameter.
"collect_survey_feedback": {
...
"survey_thank_you_title": "Thank you for the feedback!",
...
} User identification (Element 6)
In the first question of the survey, each report viewer decides whether to share feedback with their email address or to keep their responses anonymous. 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. The default options for this question are:
- Include my email address
- Stay anonymous
Issues Question (Elements 7 & 8)
The second question in the survey asks the end-users which technical issues they have. The settings for that question are under the issues_question object. To disable this question, set the enabled parameter to false.
"collect_survey_feedback": {
...
"issues_question": {
"enabled": true,
"question": "Do you have any issue in this report?",
"answers": [
["I have no issues", 0],
["I am not sure how to use this report", 1],
["The data or calculations are incorrect", 2],
["I am missing data", 3],
["The report is too slow", 4],
["Other", 5]
]
},
...
} Time Savings Question (Elements 9 & 10)
The third question asks the end-users how many hours the report saves them. The settings are under the time_save_question object.
"time_save_question": {
"enabled": true,
"question": "How many hours per month does this report save you?",
"answers": [
["Less than 1 hour", 0],
["1-5 hours", 1],
["6-10 hours", 6],
["11-20 hours", 11],
["More than 20 hours", 20]
]
}, Decision-Making Question (Elements 11 & 12)
The fourth question asks if the report impacts decision-making. Settings are under the decision_making_question object.
"decision_making_question": {
"enabled": true,
"question": "How has this report impacted your decision-making?",
"answers": [
["Made things significantly complicated", -2],
["Made things a bit complicated", -1],
["No impact", 0],
["Somewhat improved", 1],
["Significantly improved", 2]
]
}, Financial Gain Question (Elements 13 & 14)
The fifth question asks about estimated financial benefit. Settings are under the financial_benefit_question object.
"financial_benefit_question": {
"enabled": true,
"question": "What is the estimated monthly financial savings or gain of this report?",
"answers": [
["The benefit cannot be measured", -1],
["No benefit", 0],
["Less than $100", 1],
["$100 - $999", 100],
["$1000 - $9,999", 1000],
["$10,000 - $99,999", 10000],
["$100,000 or more", 100000]
]
} Net Promoter Score (NPS) Question (Element 15)
The last question measures the likelihood to recommend the report to colleagues. Settings are under the nps_question object.
"nps_question": {
"enabled": true,
"question": "On a scale from 0 to 10, how likely are you to recommend this Power BI report to a colleague or peer?"
}, Navigation Experience
If you activated the Feedback Collection feature on all pages as described in Collect user feedback, you can add a navigation button next to the Feedback slicer. End-users will be able to navigate from each page to the last page where the embedded survey is located.
"collect_survey_feedback": {
...
"include_button_to_survey": true,
"include_button_to_survey_label": "Share feedback",
...
} Special Considerations
The embedded survey is implemented using native Slicer visuals in Power BI. Each Slicer visual has the Survey's question as a title, and the answers as the values the end-users can select in the Slicer. The answers in each Slicer are sourced from a specific table that BI Pixie adds to the semantic model when it adds Pixies.
When you activate the embedded survey, BI Pixie adds a hidden calculated table to the local Semantic Model of the target report for the email question and for each enabled question (unless the report is connected live to an external Semantic Model that does not already have such tables):
- PixieFeedbackContactMe
- PixieFeedbackIssues
- PixieFeedbackTimeSavings
- PixieFeedbackDecisionImpact
- PixieFeedbackFinancialImpact
- PixieFeedbackNPS
Each table corresponds to a specific question in the survey and is bound to a Slicer control in the survey page. BI Pixie finds each table by its name and its column names, so when a table or column is renamed, BI Pixie no longer links the slicer to its question and creates the table again.
When your target report has a live-connection to an external Semantic Model, the embedded survey page will not be added to the report unless the external Semantic Model already has at least one of the PixieFeedback survey tables. In that case, BI Pixie adds a question for each survey table the external Semantic Model has. You can add the survey tables to a shared Semantic Model by adding Pixies to the local report of the Semantic Model. If you convert your live-connection report to a Composite mode in Power BI, BI Pixie can add the tables to the local Semantic Model, and the embedded survey can be added to your report.
What's Next
Analyze engagement at the visuals level using a heatmap