Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,000 --> 00:00:02,000
Chris: Next up, let's talk about Q&A visuals.
2
00:00:02,000 --> 00:00:05,000
These allow users to explore and visualize data
3
00:00:05,000 --> 00:00:08,000
from your model using intuitive natural language
4
00:00:08,000 --> 00:00:10,000
prompts and queries.
5
00:00:10,000 --> 00:00:12,000
So for example, you might type a prompt
6
00:00:12,000 --> 00:00:15,000
like show me total revenue by country,
7
00:00:15,000 --> 00:00:17,000
Power BI is gonna take its best stab
8
00:00:17,000 --> 00:00:19,000
at interpreting what you mean
9
00:00:19,000 --> 00:00:20,000
and produce the most relevant value
10
00:00:20,000 --> 00:00:24,000
or visual like the map that we see here.
11
00:00:24,000 --> 00:00:26,000
And the important thing to know about Q&A visuals
12
00:00:26,000 --> 00:00:29,000
is that they're only as useful and only as accurate
13
00:00:29,000 --> 00:00:31,000
as the data model behind them.
14
00:00:31,000 --> 00:00:33,000
And they typically require a significant amount
15
00:00:33,000 --> 00:00:37,000
of training before they're truly effective.
16
00:00:37,000 --> 00:00:39,000
So what exactly do I mean by training?
17
00:00:39,000 --> 00:00:41,000
Well, inside of Power BI desktop
18
00:00:41,000 --> 00:00:44,000
we have a few different options to refine our model
19
00:00:44,000 --> 00:00:48,000
and teach Power BI how to handle different types of queries.
20
00:00:48,000 --> 00:00:50,000
First, we have field synonyms.
21
00:00:50,000 --> 00:00:53,000
This is where you can add human readable synonyms
22
00:00:53,000 --> 00:00:56,000
for the tables, columns, or measures in your model.
23
00:00:56,000 --> 00:00:58,000
Next, you can actually review questions
24
00:00:58,000 --> 00:01:02,000
or real prompts from users to help refine your model.
25
00:01:02,000 --> 00:01:04,000
Note that this requires that you publish your report
26
00:01:04,000 --> 00:01:06,000
to Power BI service.
27
00:01:06,000 --> 00:01:08,000
You can also teach the Q&A
28
00:01:08,000 --> 00:01:11,000
by adding example questions to try to find missing
29
00:01:11,000 --> 00:01:15,000
or misunderstood terms so that you can add new synonyms.
30
00:01:15,000 --> 00:01:17,000
And last not least, this one's less about training
31
00:01:17,000 --> 00:01:19,000
and more about the user experience.
32
00:01:19,000 --> 00:01:22,000
You can pre-populate a list of suggested questions
33
00:01:22,000 --> 00:01:25,000
that users can choose from by default.
34
00:01:25,000 --> 00:01:27,000
So with that, let's jump into Power BI,
35
00:01:27,000 --> 00:01:30,000
practice building a Q&A visual ourselves.
36
00:01:30,000 --> 00:01:31,000
All right, so for our Q&A demo
37
00:01:31,000 --> 00:01:34,000
we're gonna insert a brand new report page
38
00:01:34,000 --> 00:01:37,000
and let's call this Q&A.
39
00:01:37,000 --> 00:01:40,000
And on this page we're gonna insert a new Q&A visual
40
00:01:40,000 --> 00:01:42,000
from our AI group right here.
41
00:01:42,000 --> 00:01:44,000
And let's go ahead and resize things.
42
00:01:44,000 --> 00:01:47,000
And what I'm also gonna do is add a matrix
43
00:01:47,000 --> 00:01:50,000
to this page as well so that I can kind of spot check
44
00:01:50,000 --> 00:01:52,000
the values from the Q&A visual.
45
00:01:52,000 --> 00:01:56,000
So let's start with category name on rows
46
00:01:58,000 --> 00:02:01,000
and total orders on values.
47
00:02:03,000 --> 00:02:05,000
So when it comes to interacting with the Q&A
48
00:02:05,000 --> 00:02:08,000
it's as simple as just typing what you're looking for.
49
00:02:08,000 --> 00:02:13,000
So for example, total orders for bikes,
50
00:02:13,000 --> 00:02:16,000
it spits out a card with 14,000.
51
00:02:16,000 --> 00:02:21,000
And if we check that against our matrix, 13,929 looks good.
52
00:02:21,000 --> 00:02:24,000
So what if we get a little bit more specific here?
53
00:02:24,000 --> 00:02:27,000
Total orders for blue bikes.
54
00:02:27,000 --> 00:02:32,000
Now we get 1,263, we go to our matrix
55
00:02:32,000 --> 00:02:36,000
and we pull in color on rows,
56
00:02:36,000 --> 00:02:41,000
we can drill into bikes and blue bikes 1263 looking good.
57
00:02:41,000 --> 00:02:43,000
So we're two for two off to a good start.
58
00:02:44,000 --> 00:02:47,000
Now let's get a little bit more detailed.
59
00:02:47,000 --> 00:02:51,000
Total orders, four blue bikes by start of month.
60
00:02:54,000 --> 00:02:57,000
And I'll see a couple interesting things happen.
61
00:02:57,000 --> 00:02:58,000
First of all, Power BI produced this
62
00:02:58,000 --> 00:03:00,000
monthly line chart, which looks good.
63
00:03:00,000 --> 00:03:02,000
This is accurate.
64
00:03:02,000 --> 00:03:05,000
And you'll also notice that we see this red underline.
65
00:03:05,000 --> 00:03:08,000
So the blue underline means that Power BI identified
66
00:03:08,000 --> 00:03:11,000
what these terms actually mean.
67
00:03:11,000 --> 00:03:14,000
The redline means it's not entirely sure
68
00:03:14,000 --> 00:03:15,000
but it made a guess.
69
00:03:15,000 --> 00:03:18,000
So in this case, start of month can actually be found
70
00:03:18,000 --> 00:03:20,000
in a few different places.
71
00:03:20,000 --> 00:03:22,000
The calendar lookup table, the rolling calendar
72
00:03:22,000 --> 00:03:25,000
or inside of our date hierarchy.
73
00:03:25,000 --> 00:03:28,000
So you'll notice beneath the prompt it says showing results
74
00:03:28,000 --> 00:03:30,000
for total orders for blue bikes
75
00:03:30,000 --> 00:03:33,000
by calendar lookup start of month.
76
00:03:33,000 --> 00:03:35,000
So that's the guess or the assumption
77
00:03:35,000 --> 00:03:38,000
that Power BI made to produce this visual.
78
00:03:38,000 --> 00:03:41,000
And in this case that's accurate.
79
00:03:41,000 --> 00:03:43,000
But if I were to type something that's just
80
00:03:43,000 --> 00:03:47,000
complete gibberish like this, I get a double red underline
81
00:03:47,000 --> 00:03:50,000
which basically just says we give up, right?
82
00:03:50,000 --> 00:03:51,000
We don't know what you mean.
83
00:03:51,000 --> 00:03:54,000
Try a different term or add this one
84
00:03:54,000 --> 00:03:55,000
by creating a definition.
85
00:03:55,000 --> 00:03:58,000
And that's one of the ways that you can train your model
86
00:03:58,000 --> 00:04:00,000
which we're gonna talk about in just a bit.
87
00:04:00,000 --> 00:04:03,000
So let's get rid of that gibberish
88
00:04:03,000 --> 00:04:04,000
and expand this query one more time.
89
00:04:04,000 --> 00:04:08,000
So total orders, four blue bikes by start of month
90
00:04:08,000 --> 00:04:10,000
but now we don't want a line chart.
91
00:04:10,000 --> 00:04:12,000
I want a column chart.
92
00:04:12,000 --> 00:04:15,000
I could say as column chart.
93
00:04:16,000 --> 00:04:19,000
And there we go, visual updates.
94
00:04:19,000 --> 00:04:22,000
And what's even better is that just like any other visual
95
00:04:22,000 --> 00:04:24,000
we've got cross filtering effects
96
00:04:24,000 --> 00:04:27,000
as we select certain values in the chart.
97
00:04:27,000 --> 00:04:30,000
So notice our matrix updating with each
98
00:04:30,000 --> 00:04:32,000
of these month selections.
99
00:04:32,000 --> 00:04:35,000
Now some of you out there are probably thinking,
100
00:04:35,000 --> 00:04:37,000
well Chris you're typing very specific terms
101
00:04:37,000 --> 00:04:40,000
because you are so familiar with the data model.
102
00:04:40,000 --> 00:04:44,000
But an average user probably wouldn't be using terms like
103
00:04:44,000 --> 00:04:46,000
total orders or start of month.
104
00:04:46,000 --> 00:04:49,000
They'd probably type something that's a little less clear
105
00:04:49,000 --> 00:04:54,000
or a little more general like orders by month, right?
106
00:04:54,000 --> 00:04:56,000
That's a much more realistic query
107
00:04:56,000 --> 00:04:58,000
from a user who's not as familiar
108
00:04:59,000 --> 00:05:01,000
with the underlying data structure and data model.
109
00:05:01,000 --> 00:05:04,000
And this is where things get interesting.
110
00:05:04,000 --> 00:05:05,000
And here's a good example, right?
111
00:05:05,000 --> 00:05:09,000
With this query orders by month initially it looks accurate
112
00:05:09,000 --> 00:05:11,000
we see a line chart, but the problem is that
113
00:05:11,000 --> 00:05:13,000
there's only 12 data points here
114
00:05:13,000 --> 00:05:16,000
and we've got two and a half years of data in our model.
115
00:05:16,000 --> 00:05:18,000
And if you look closely, you'll realize
116
00:05:18,000 --> 00:05:21,000
that Power BI is aggregating the order volumes
117
00:05:21,000 --> 00:05:24,000
for each distinct month number.
118
00:05:24,000 --> 00:05:27,000
And by doing so it's creating this kind of meaningless trend
119
00:05:27,000 --> 00:05:30,000
that's quite a bit misleading to be honest.
120
00:05:30,000 --> 00:05:33,000
So I'm gonna show you how to solve this in just a second.
121
00:05:33,000 --> 00:05:36,000
But another example of where a general query
122
00:05:36,000 --> 00:05:40,000
can cause problems is something like revenue by category.
123
00:05:42,000 --> 00:05:44,000
So what we see here we're hoping to see kind of
124
00:05:44,000 --> 00:05:45,000
product categories, right?
125
00:05:45,000 --> 00:05:47,000
Accessories, bikes and clothing.
126
00:05:47,000 --> 00:05:50,000
Instead, we see this bar chart broken down all
127
00:05:50,000 --> 00:05:52,000
the way down to the skew category level
128
00:05:52,000 --> 00:05:55,000
which in this case is not what I was intending.
129
00:05:55,000 --> 00:05:58,000
So that's a good segue into the training options
130
00:05:58,000 --> 00:06:01,000
that are available to make these Q&A visuals
131
00:06:01,000 --> 00:06:02,000
more accurate.
132
00:06:02,000 --> 00:06:04,000
And we can access those training options
133
00:06:04,000 --> 00:06:06,000
through this gear icon here that's gonna open up
134
00:06:06,000 --> 00:06:09,000
a brand new window where we can access all of these
135
00:06:09,000 --> 00:06:10,000
different training options.
136
00:06:10,000 --> 00:06:13,000
So let's start with synonyms.
137
00:06:13,000 --> 00:06:14,000
This is where you'll be spending the most time
138
00:06:14,000 --> 00:06:16,000
training your models.
139
00:06:16,000 --> 00:06:18,000
And the first thing to note here is that you can
140
00:06:18,000 --> 00:06:22,000
actually hide entire tables or individual fields
141
00:06:22,000 --> 00:06:24,000
from the Q&A.
142
00:06:24,000 --> 00:06:27,000
And this is great if you have things like parameter tables
143
00:06:27,000 --> 00:06:29,000
or fields that you never want to be shown
144
00:06:29,000 --> 00:06:30,000
in a Q&A visual.
145
00:06:30,000 --> 00:06:33,000
You'll also notice that Power BI often takes a stab
146
00:06:33,000 --> 00:06:36,000
at creating synonyms for individual terms.
147
00:06:36,000 --> 00:06:39,000
Month short, synonym is short, and some of these
148
00:06:39,000 --> 00:06:41,000
really don't make much sense at all.
149
00:06:41,000 --> 00:06:44,000
In this case, start of month has a synonym of start.
150
00:06:44,000 --> 00:06:47,000
Same with start of quarter, week, and year.
151
00:06:47,000 --> 00:06:49,000
So while we're in here because these fields
152
00:06:49,000 --> 00:06:53,000
are the ones we typically use for time series analysis
153
00:06:53,000 --> 00:06:54,000
really want to clean up these synonyms.
154
00:06:54,000 --> 00:06:57,000
So start of month, let's update
155
00:06:57,000 --> 00:07:00,000
and add a synonym called month.
156
00:07:00,000 --> 00:07:04,000
Start of quarter let's get rid of start and add quarter.
157
00:07:05,000 --> 00:07:07,000
I'm gonna do the same thing for start of week.
158
00:07:09,000 --> 00:07:11,000
And for start of year.
159
00:07:12,000 --> 00:07:15,000
So that's gonna help clean things up quite a bit.
160
00:07:15,000 --> 00:07:18,000
I can also go up to that month field,
161
00:07:18,000 --> 00:07:20,000
which was causing us to kind of aggregate
162
00:07:20,000 --> 00:07:22,000
those order numbers by month number.
163
00:07:22,000 --> 00:07:24,000
And I can say, you know what?
164
00:07:24,000 --> 00:07:27,000
We only want to match with that start of month column.
165
00:07:27,000 --> 00:07:29,000
Let's just hide the month field
166
00:07:29,000 --> 00:07:31,000
from the Q&A visual entirely.
167
00:07:31,000 --> 00:07:34,000
And we'll jump back and see what impact that had
168
00:07:34,000 --> 00:07:35,000
in just a second.
169
00:07:35,000 --> 00:07:38,000
Last thing I want to do here while I'm managing my synonyms
170
00:07:38,000 --> 00:07:41,000
is try to understand why that category query
171
00:07:41,000 --> 00:07:44,000
was mapping to skew categories.
172
00:07:44,000 --> 00:07:48,000
So that skew category field lives in product lookup,
173
00:07:48,000 --> 00:07:51,000
can scroll down to skew category.
174
00:07:51,000 --> 00:07:53,000
And you can see that Power BI had automatically
175
00:07:53,000 --> 00:07:56,000
created a synonym called category.
176
00:07:56,000 --> 00:07:59,000
And that's why we were mapping to this field in our query.
177
00:07:59,000 --> 00:08:03,000
So let's delete or remove that synonym there.
178
00:08:04,000 --> 00:08:08,000
Let's collapse this table and head to our category table
179
00:08:08,000 --> 00:08:10,000
and make sure that category name which is the field
180
00:08:10,000 --> 00:08:14,000
we wanted does have a proper synonym for a category.
181
00:08:14,000 --> 00:08:15,000
So we'll add it here.
182
00:08:15,000 --> 00:08:18,000
And then I actually know there's one other place
183
00:08:18,000 --> 00:08:19,000
where that word category shows up
184
00:08:19,000 --> 00:08:24,000
and that's in our customer table in the education category.
185
00:08:24,000 --> 00:08:26,000
And you can see we've got a category synonym
186
00:08:26,000 --> 00:08:27,000
for this field as well.
187
00:08:27,000 --> 00:08:29,000
So we're creating all sorts
188
00:08:30,000 --> 00:08:31,000
of confusion with this Q&A visual.
189
00:08:31,000 --> 00:08:33,000
Let's remove it here.
190
00:08:33,000 --> 00:08:35,000
This is really a good real world example
191
00:08:35,000 --> 00:08:38,000
about how messy this process can be
192
00:08:38,000 --> 00:08:41,000
and how much effort it typically takes to properly
193
00:08:41,000 --> 00:08:45,000
train a model and get consistent accurate results.
194
00:08:45,000 --> 00:08:47,000
So I could go through all of the tables and fields
195
00:08:47,000 --> 00:08:49,000
here in my model, but I think for now
196
00:08:49,000 --> 00:08:50,000
that should do the trick.
197
00:08:50,000 --> 00:08:52,000
One thing to call out here is that you've got this
198
00:08:52,000 --> 00:08:55,000
managed terms tab and that's where you can see
199
00:08:55,000 --> 00:08:57,000
all of these synonyms that you just created.
200
00:08:57,000 --> 00:09:00,000
So with that, let's jump back to our visual
201
00:09:00,000 --> 00:09:01,000
and check this out.
202
00:09:01,000 --> 00:09:04,000
Now, our revenue by category prompt returns
203
00:09:04,000 --> 00:09:07,000
what we'd expect, product category breakouts,
204
00:09:07,000 --> 00:09:10,000
bikes, accessories, and clothing.
205
00:09:10,000 --> 00:09:12,000
And if we go back to that other prompt,
206
00:09:12,000 --> 00:09:14,000
we tried orders by month,
207
00:09:14,000 --> 00:09:16,000
which gave us the aggregated totals.
208
00:09:16,000 --> 00:09:19,000
Now we're mapping to that start of month field
209
00:09:19,000 --> 00:09:22,000
and we're showing the proper time series trend.
210
00:09:22,000 --> 00:09:25,000
So those updates we made by adding those synonyms
211
00:09:25,000 --> 00:09:27,000
had a really significant impact
212
00:09:27,000 --> 00:09:30,000
on how this Q&A visual functions.
213
00:09:30,000 --> 00:09:32,000
Now another feature I wanna show you in here
214
00:09:32,000 --> 00:09:34,000
is the review questions option.
215
00:09:34,000 --> 00:09:36,000
And again, this is only relevant
216
00:09:36,000 --> 00:09:38,000
if we've published the report to service,
217
00:09:38,000 --> 00:09:40,000
but this is where we can see actual questions
218
00:09:40,000 --> 00:09:42,000
that users asked.
219
00:09:42,000 --> 00:09:45,000
We can also see if they gave the results a thumbs up
220
00:09:45,000 --> 00:09:46,000
or thumbs down rating.
221
00:09:46,000 --> 00:09:48,000
And we can see through these underlines
222
00:09:48,000 --> 00:09:51,000
how well Power BI was able to interpret the prompt.
223
00:09:51,000 --> 00:09:53,000
So in this case, we see that a user typed
224
00:09:53,000 --> 00:09:57,000
orders by product type we don't have any field
225
00:09:57,000 --> 00:10:00,000
in the data set called type but they're most likely looking
226
00:10:00,000 --> 00:10:02,000
for subcategory level data.
227
00:10:02,000 --> 00:10:03,000
That might be a good hint for us
228
00:10:03,000 --> 00:10:07,000
to go into our field synonyms and add some new synonyms
229
00:10:07,000 --> 00:10:09,000
to make sure this type of question is generating
230
00:10:09,000 --> 00:10:11,000
the proper result.
231
00:10:11,000 --> 00:10:14,000
Next up, we've got this Teach Q&A option here.
232
00:10:14,000 --> 00:10:17,000
This is where you can kind of test different queries
233
00:10:17,000 --> 00:10:20,000
and help Power BI define terms that it doesn't recognize.
234
00:10:20,000 --> 00:10:24,000
So here's one example, orders for bicycles
235
00:10:26,000 --> 00:10:27,000
and we submit that prompt.
236
00:10:27,000 --> 00:10:29,000
Power BI is gonna say, Hey we have no idea
237
00:10:29,000 --> 00:10:31,000
what you mean by bicycles.
238
00:10:31,000 --> 00:10:33,000
Can you help define it here?
239
00:10:33,000 --> 00:10:37,000
So in this case we can say bicycle refers to
240
00:10:37,000 --> 00:10:41,000
category is bikes.
241
00:10:41,000 --> 00:10:43,000
You can go ahead and save that once it loads
242
00:10:43,000 --> 00:10:46,000
based on my preview, that actually looks correct.
243
00:10:46,000 --> 00:10:50,000
And now in managed terms, you'll see that update right here.
244
00:10:50,000 --> 00:10:53,000
Bicycle is defined as category name is bicycle
245
00:10:53,000 --> 00:10:56,000
if category name is bikes.
246
00:10:56,000 --> 00:10:57,000
Now last thing to show you here is
247
00:10:57,000 --> 00:10:59,000
the suggest questions option.
248
00:10:59,000 --> 00:11:02,000
And this can be helpful if you want
249
00:11:02,000 --> 00:11:04,000
to kind of train users how to ask effective questions
250
00:11:04,000 --> 00:11:07,000
or if there are specific questions that you want people
251
00:11:07,000 --> 00:11:09,000
to ask about the data.
252
00:11:09,000 --> 00:11:14,000
So for example, orders by month we can add that.
253
00:11:15,000 --> 00:11:20,000
Could do anything here like return rate by category.
254
00:11:21,000 --> 00:11:22,000
These are just examples.
255
00:11:22,000 --> 00:11:24,000
But let's go ahead and save those two.
256
00:11:24,000 --> 00:11:28,000
And now when we close this box and head back to our visual
257
00:11:28,000 --> 00:11:31,000
and if we clear this prompt you see
258
00:11:31,000 --> 00:11:34,000
those two suggested questions that we just added.
259
00:11:34,000 --> 00:11:37,000
Return rate by category, orders by month.
260
00:11:37,000 --> 00:11:38,000
Now last but not least,
261
00:11:38,000 --> 00:11:41,000
if you kind of have a visual that's been produced
262
00:11:41,000 --> 00:11:43,000
that you really like and you're done interacting
263
00:11:43,000 --> 00:11:46,000
with Q&A, you can click this button here
264
00:11:46,000 --> 00:11:47,000
next to the gear.
265
00:11:47,000 --> 00:11:49,000
And what that's gonna do is convert it
266
00:11:49,000 --> 00:11:53,000
into a standard visual so we're no longer a Q&A visual.
267
00:11:53,000 --> 00:11:55,000
We're now a standard line chart.
268
00:11:55,000 --> 00:11:56,000
So there you have it.
269
00:11:56,000 --> 00:11:57,000
I know that was a lot to cover
270
00:11:57,000 --> 00:12:01,000
but that's your crash course in Power BI's Q&A Visual.
21576
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.