News & tips
This article is for Power BI beginners & intermediates looking to learn how to use the Q&A visual.
This article covers:
The Q&A visual in Power BI allows you to create visuals using Power BI’s natural language processing engine to interpret your question and get an answer from your data.
This new feature means you can ask a question about your data in plain English and have Power BI build the visual to answer your question for you.
Once you get used to it, this can be a really fast way to try out new reports and ways to look at your data.
It is also a really quick way to see how Power BI would present your dataset – it might surprise you!
Half of business intelligence is analysing your data the other half is learning the best way to present your data using Power BI.
The Q&A visual is most valuable when you are looking to produce something quickly.
It is perfect when trying things out or exploring as it allows you to develop multiple visuals very quickly, just as Power BI’s automated machine learning capabilities allow you to experiment with multiple data models very quickly.
If you are looking for inspiration, they work very well as Power BI will suggest both the types of data to use in your visual and the type of visual itself.
Another good use case is if you are going to be asked questions about your data which you will be expected to answer in real-time. Instead of building a visual for every possible question, the Q&A visual allows users to ask and answer their own questions interactively.
Keep in mind that the Q&A visual works best when your data is prepared, with all fields in plain language. If your fields are not set up this way, creating a Q&A visual is more cumbersome for the person asking the question.
Adding a Q&A visual is very simple.
In Power BI Desktop, navigate to your Visualisations pane and search for the icon that looks like a speech bubble.
Adding this visual to your report will review your data and suggest some questions for you.
You can either create your own question by typing in the “Ask a question about your data” box or clicking on the pre-made questions below. The Q&A visual can also present more question options by selecting “Show all suggestions” at the bottom.
The beauty of natural language processing works is that the Q&A visual can understand complete sentences or shorter phrases containing just the keywords.
As you begin to type your questions, Power BI creates suggestions based on your data to make it even easier. Fields that Power BI recognises will be underlined in blue. Words Power BI doesn’t recognise will be underlined in red.
In this example, the Q&A visual also suggests the best way to present the data is a horizontal bar chart.
If the chart that Power BI creates for you does not look right, you can also define the type of visual you want. You can specify the type of chart you want by adding “as a” and the type of visual to the end of any question.
The Q&A visual can recognise a variety of types of keywords, such as aggregates (sum, total, highest lowest), comparisons (vs, compared to), and dates, to name a few options. For a complete listing of possible keywords, you can refer to the information here.
Once you have a visual that you want to keep for your Power BI report, you can convert it into a standard visual by clicking on the button in the top right of the visual.
After converting the visual, you can make any of the usual alterations to a visual’s formatting, for example, using a theme to standardise your presentation.
The “Teach Q&A” feature allows you to enter terms that Power BI’s natural language processing engine doesn’t understand and show it how to relate them to your data.
Depending on your organisation and how you operate, there may be different phrasing people use. One example is geographic boundaries.
In some cases, it could be “State”, in others “Province”, or something else entirely.
This feature is accessed by clicking on the gear icon in the top right of the visual.
Once inside the setup menu, you will have several different options.
Field synonyms allow you to manually adjust which words Power BI understands to mean the same thing. So using our example above, you can update Power BI to understand that “State” and “Province” are being used to mean the same thing.
You can add or remove terms and even turn on or off the synonyms for a field.
The Q&A visual automatically creates synonyms based on the common terms.
Review questions give you the ability to see what questions users have asked. This can help improve the accuracy of Q&A by tweaking synonyms or changing what your fields are called.
The review questions feature requires an enterprise subscription to work. This article gives more detail on the different Power BI subscriptions.
In this example, “person” was used, which isn’t in the data fields or the synonyms.
Power BI can create the visual by updating Power BI’s language processing engine to know “person” actually refers to “employee”.
Suggest questions allow you to pre-populate the suggested questions for the visual. This can be helpful if you review questions users are asking most often and put the top questions in the list or include questions users are asking incorrectly.
The Q&A visual can be a powerful tool, but it must be used for the right job like all tools.
It isn’t something that you will want to have on every report and can quickly become overused.
If you are looking to speed up your report development or inspiration on visuals, then it’s one to try.