YouTube2Text

Build an Interactive Excel Dashboard Using PivotTables — Transcript

by Marg Analytics · 6,376 words · 983 segments · language en · Watch on YouTube

Full transcript

  1. 0:01Hi, welcome back to Mark Analytics. In
  2. 0:04this video, I'll show you how to turn
  3. 0:06raw sales data into an interactive Excel
  4. 0:09dashboard like this using pivot tables,
  5. 0:12pivot charts, slices, and timeline.
  6. 0:14We'll go step by step from understanding
  7. 0:17the business question and reviewing data
  8. 0:20all the way to build the final
  9. 0:22dashboard. And this is going to be a
  10. 0:24very long tutorial video, so I've added
  11. 0:26chapters below if you want to jump to
  12. 0:29specific section. Without further ado,
  13. 0:32let's get into it.
  14. 0:36Let's start with the scenario. You're
  15. 0:38now working in a company that sells
  16. 0:41different products across multiple
  17. 0:43regions, sales channels, and also
  18. 0:45customer type.
  19. 0:48and you're given a sales data set and
  20. 0:51your manager wants a simple dashboard to
  21. 0:54review the overall sales performance
  22. 0:57without looking through thousands of
  23. 0:59rows of raw data. So this dashboard
  24. 1:02should help them to quickly understand
  25. 1:05the total revenue, the total orders, the
  26. 1:09quantity sold, average order value,
  27. 1:13monthly revenue trend, regional
  28. 1:16performance,
  29. 1:18product category performance, sales
  30. 1:20channels contribution, and also the top
  31. 1:23products by revenue.
  32. 1:28Now let's review the raw data. Before
  33. 1:31creating any dashboard, it's important
  34. 1:33to understand what data that we actually
  35. 1:36have. So first we have the order ID
  36. 1:40which identifies each order. Basically
  37. 1:43each row represents one sales order. And
  38. 1:48next we have the date which tells us
  39. 1:51when the order happened. And we have the
  40. 1:54region which tells us where the sales
  41. 1:58came from. We also have the sales
  42. 2:01channels such as online, retail,
  43. 2:05marketplace, corporate sales. And this
  44. 2:07tells us which channel this order came
  45. 2:10from. Then we also have the customer
  46. 2:13type which tells us whether the customer
  47. 2:16is new or returning customer.
  48. 2:19And we have the product category and
  49. 2:22product for the product detail.
  50. 2:25And then saleserson which tells us who
  51. 2:27sold each order. And lastly for
  52. 2:31quantity, unit price, discount and
  53. 2:34revenue is for the sales number. So
  54. 2:38basically quantity is the quantity sold
  55. 2:41and unit price is the unit price for the
  56. 2:45product and the discount is if this
  57. 2:48order has any discount and then the
  58. 2:51final revenue.
  59. 2:55Next I also want to quickly just check
  60. 2:58the data if it's suitable for pivot
  61. 3:01tables. So first there shouldn't be any
  62. 3:05blank column headers in this data
  63. 3:08because pivot tables require a proper
  64. 3:12headers. So in this data set there is no
  65. 3:14blank headers. So let's move to the next
  66. 3:17one. We want to check if there are any
  67. 3:21blank rows in this data set. So one
  68. 3:24quick way to check this is to just click
  69. 3:27on the header or the first data cell and
  70. 3:31then on your keyboard press control down
  71. 3:34and if there is a blank row inside the
  72. 3:37data set Excel will stop before the
  73. 3:40blank row. So in this data set I do not
  74. 3:43have any blank row. So after I press on
  75. 3:47control down it goes to the last row in
  76. 3:50the data. And another way to check blank
  77. 3:53rows is to turn on the filter. So to
  78. 3:56turn on the filter just press on control
  79. 3:58shift L on the keyboard and there is
  80. 4:00this filter. Just click on the down
  81. 4:03button and see if there is blank in the
  82. 4:06filter area. So in this data set there
  83. 4:09is no blank row. And next the date
  84. 4:12should also be formatted correctly. And
  85. 4:14a quick way to check if the date is
  86. 4:17formatted correctly is to check on the
  87. 4:20number format in the home tab. Or you
  88. 4:24can click on the down button at the
  89. 4:26filter and see if Excel groups the data
  90. 4:31to year, month and the day.
  91. 4:35And next for text column like region,
  92. 4:38sales channel, customer type, product
  93. 4:41category and product and as a saleserson
  94. 4:44I would quickly check if those data are
  95. 4:48consistent like the labels and so on if
  96. 4:50there are any typo errors and things
  97. 4:52like that. So the spelling for the
  98. 4:54region looks consistent and correct.
  99. 4:58And same goes with the sales channel
  100. 5:01and customer type, product category
  101. 5:07and product
  102. 5:09and also the saleserson.
  103. 5:13And lastly all the numeric data like
  104. 5:15quantity, unit price, discount and
  105. 5:18revenue. They should be numeric. To
  106. 5:22check this, we can just select the data
  107. 5:24and take a look at the number format
  108. 5:26over here.
  109. 5:28And so the unit price is already
  110. 5:30formatted as
  111. 5:32number and the discount is formatted as
  112. 5:36percentage and the revenue is formatted
  113. 5:39as number. And another way is to check
  114. 5:42the alignment. Usually numbers are right
  115. 5:45align like this and text is left align.
  116. 5:49For more details about numbers stored as
  117. 5:51text, you can refer to my previous
  118. 5:53video. I'll leave the link in the
  119. 5:55description. And for this sales data set
  120. 5:58in this practice file, the data is
  121. 6:00already clean, so we can focus on
  122. 6:02building the dashboard. But in real
  123. 6:05work, this step can take much longer
  124. 6:07time. So you may use formulas for
  125. 6:10checking data quality issues or use
  126. 6:13pivot tables for exploring whether the
  127. 6:16data looks reasonable or not. Now that
  128. 6:20we have reviewed this data, next is to
  129. 6:22convert this data into an Excel table.
  130. 6:25This is important because Excel table
  131. 6:28makes the data easier to manage. And to
  132. 6:30convert this data into Excel table, just
  133. 6:34click anywhere inside the data set and
  134. 6:36then press CtrlT on the keyboard. And
  135. 6:39there's this popup that ask where is the
  136. 6:43data for your table. So just make sure
  137. 6:45you put in the correct range and then
  138. 6:48whether your data has headers or not.
  139. 6:51Then click on okay. And this instantly
  140. 6:54convert it into table. So I would also
  141. 6:57want to change the design.
  142. 7:01And next is to rename this table.
  143. 7:05So I'll just rename it to sales data.
  144. 7:09Renaming table is very important because
  145. 7:11it's easier to recognize the data later,
  146. 7:15especially if you're handling a lot of
  147. 7:17data in one workbook.
  148. 7:20Now that we understand the available
  149. 7:22data, let's connect the dashboard
  150. 7:25requirements that I've mentioned earlier
  151. 7:27here to the elements that we're going to
  152. 7:30build.
  153. 7:32All right. So these are the dashboard
  154. 7:34requirements and instead of just
  155. 7:37creating pivot tables randomly, I want
  156. 7:40to turn this requirement into a simple
  157. 7:45dashboard plan.
  158. 7:47So let's take a look at the dashboard
  159. 7:49element and also the column use. For the
  160. 7:52first one, total revenue, we'll create a
  161. 7:54pivot table with the total revenue using
  162. 7:57the revenue column. And for the total
  163. 8:00orders is similar to the total revenue.
  164. 8:03We'll be creating a pivot table with
  165. 8:06total orders using order ID.
  166. 8:10and the total quantity sold using the
  167. 8:13quantity column
  168. 8:16and the average order value. We'll be
  169. 8:19creating a pivot table showing the
  170. 8:21average order value and we will be using
  171. 8:24revenue and also the order ID. But in
  172. 8:27this case because each row represents
  173. 8:29one order. So we will not be using the
  174. 8:33order ID. We'll just average the
  175. 8:35revenue. And next is the monthly revenue
  176. 8:39trend. We'll be creating a revenue by
  177. 8:42month chart using date and revenue
  178. 8:45column. And next regional performance
  179. 8:48which is the revenue by region using
  180. 8:52region and revenue column. And product
  181. 8:55category performance. We'll be creating
  182. 8:58a revenue by product category chart
  183. 9:00using the product category and also the
  184. 9:03revenue column. And then sales channel
  185. 9:06contribution. We'll be creating a chart
  186. 9:09showing the revenue by sales channel
  187. 9:11using sales channel and revenue column.
  188. 9:15And lastly, top products by revenue.
  189. 9:18We'll be creating a chart showing the
  190. 9:19top five product using product and
  191. 9:23revenue column. So this table gives us a
  192. 9:26clear directions and every pivot table
  193. 9:29and pivot chart that we are going to
  194. 9:31create later should connect back to one
  195. 9:33of these requirements.
  196. 9:37Now let's move on to creating pivot
  197. 9:39tables. So click anywhere inside the
  198. 9:42data set then go to insert then click
  199. 9:44pivot tables. And now I'm going to
  200. 9:47choose existing worksheet because I'm
  201. 9:49going to place all the pivot tables in
  202. 9:52this supporting pivots. And then I'm
  203. 9:55going to select an address then click on
  204. 9:58okay.
  205. 10:00All right. So this is the first pivot
  206. 10:02table and we are going to create total
  207. 10:04revenue. So just drag revenue to the
  208. 10:07values area and now we've got the sum of
  209. 10:10revenue which is also the total revenue.
  210. 10:14And let's also format this numbers so
  211. 10:16that it's more readable. So click on the
  212. 10:20down button beside the sum of revenue.
  213. 10:22Then go to value field settings and then
  214. 10:25click on number format. And I'm going to
  215. 10:28create a custom format because I wanted
  216. 10:31to include both the dollar sign or the
  217. 10:34currency sign with the M for millions
  218. 10:37and K for thousands.
  219. 10:41All right. So
  220. 10:44open bracket then more than equals to a
  221. 10:47million
  222. 10:51then close bracket then I want it to
  223. 10:53have a dollar sign and the number should
  224. 10:57be having
  225. 10:59th00and separator
  226. 11:02and I want it to show two decimal places
  227. 11:06and then
  228. 11:08two commas for
  229. 11:11a million One comma means dividing by a
  230. 11:14th00and. So two commas means dividing a
  231. 11:18th00and two times. Basically it means a
  232. 11:20million. Then open quotation mark m and
  233. 11:25then close quotation. So this is if the
  234. 11:28values is greater than a million then it
  235. 11:31will use this formatting.
  236. 11:34Then semicolon.
  237. 11:36Next is open bracket for greater equals
  238. 11:41to a th00and.
  239. 11:44So a dollar sign
  240. 11:47and then numbers
  241. 11:51with two decimal places
  242. 11:54and one comma for a th00and for dividing
  243. 11:58by a th00and then k
  244. 12:01then semicolon.
  245. 12:03And if the numbers are less than a,000,
  246. 12:06then I want it to just show
  247. 12:09numbers and two decimal places.
  248. 12:12And let's not forget the dollar sign as
  249. 12:14well. And yeah, this is it. And now
  250. 12:18let's click on okay. And click on okay
  251. 12:21again. And now I got my 2.45 millions.
  252. 12:26And now let's move on to the second
  253. 12:28pivot table, the total orders, which is
  254. 12:31this. So let me just copy and paste this
  255. 12:36pivot table and let's remove the revenue
  256. 12:40and put in the order. So you notice that
  257. 12:44it changes to count of order because the
  258. 12:48order ID is not formatted as number. So
  259. 12:51the default calculation it's count. So
  260. 12:54this is what we want the total orders.
  261. 12:58And let's copy this and paste again. and
  262. 13:02let's create total quantity s
  263. 13:06let's remove the count of order ID and
  264. 13:09let's drag in quantity to the values and
  265. 13:12this is the sum of quantity
  266. 13:15and let's create the fourth pivot table
  267. 13:18remove the count of ID and let's create
  268. 13:22average order value right so let's drag
  269. 13:25in the revenue to the values area again
  270. 13:28and this time instead of sum we would be
  271. 13:31using
  272. 13:32average
  273. 13:34and there is no other special
  274. 13:36calculation in this because each row
  275. 13:39represents an order. So basically the
  276. 13:43average it means dividing by each order.
  277. 13:46So we'll just use average here then and
  278. 13:49I'll just click on okay. And let's also
  279. 13:51format this number as well using the
  280. 13:54same formatting that we have here in the
  281. 13:56sum of revenue. So let me just go back
  282. 13:59to the value field settings number
  283. 14:01format and let's just copy this
  284. 14:06and then paste here in the number
  285. 14:08format.
  286. 14:14Then click on okay. Then click on okay
  287. 14:16again. And you notice that over here
  288. 14:19it's 1.23K
  289. 14:22because of our number format that we
  290. 14:24have done just now. All right. And let's
  291. 14:27move on to the revenue by month.
  292. 14:32So let me just copy this and paste
  293. 14:34below.
  294. 14:37Revenue by month. All right. So this is
  295. 14:39the revenue. And let's just drag in the
  296. 14:42date. And let's remove the days and the
  297. 14:45date because we only need the month.
  298. 14:51And notice that the revenue has been
  299. 14:53formatted nicely because we have copied
  300. 14:56the sum of revenue over here and paste
  301. 14:58it to use it over here.
  302. 15:02Then let's move on to
  303. 15:05revenue by region and let's copy this
  304. 15:11pivot table again and paste
  305. 15:14and let's write in the region.
  306. 15:17All right. So this is the revenue by by
  307. 15:20region.
  308. 15:21And let's do the next one. Revenue by
  309. 15:24product category. So let's just drag in
  310. 15:27the category to the rows area. And now
  311. 15:30we got all the product category and the
  312. 15:34revenue.
  313. 15:36And next is revenue by sales channel.
  314. 15:40Let's copy and then drag in sales
  315. 15:43channels. And lastly is top five
  316. 15:46products by revenue. And let's paste
  317. 15:49again.
  318. 15:51And this time, let's drag in the
  319. 15:53product. All right. So, there are a lot
  320. 15:55of products here, but we only need the
  321. 15:58top five product. So, what I can do here
  322. 16:01is to click on the down button at the
  323. 16:04row labels and then go to value filters
  324. 16:07and click on top 10.
  325. 16:10And here I'll just type in the five and
  326. 16:13five item by the sample revenue. Then
  327. 16:15click on okay. All right. So these are
  328. 16:18the top five products by the sum of
  329. 16:22revenue. But notice that the values are
  330. 16:25not arranged in any order. So it's based
  331. 16:29on the alphabetical order. So let's also
  332. 16:32sort this descending order by the sum of
  333. 16:35revenue. Then click on okay.
  334. 16:38Now that we have done creating all the
  335. 16:40pivot tables, let's move on to creating
  336. 16:43pivot chart. And let's start by creating
  337. 16:47the revenue by month. So click inside
  338. 16:50the pivot table. Then go to pivot table
  339. 16:54analyze tab and then click on pivot
  340. 16:57chart. And over here you can choose any
  341. 17:01chart that you want to insert. And
  342. 17:04another way is to go to insert then go
  343. 17:06to recommended charts. And it's the
  344. 17:09same. You can choose the charts that you
  345. 17:11want to insert. For revenue by month,
  346. 17:14I'm going to use line chart. Then click
  347. 17:16on okay. And here is the line chart. And
  348. 17:20let's format this chart so that it's
  349. 17:23more readable and cleaner and more
  350. 17:25informative.
  351. 17:26So first I'll hide all the field
  352. 17:28buttons. And let's also remove the
  353. 17:31legend.
  354. 17:32And let's add data labels.
  355. 17:35And as you can see the data labels are
  356. 17:38not really readable. So click on this
  357. 17:40button beside the data labels. Then go
  358. 17:42to more options
  359. 17:44and let's format the numbers.
  360. 17:48So click on numbers and over here I'll
  361. 17:51choose custom format and I'm going to
  362. 17:54remove the dollar sign and also the two
  363. 17:57decimal places.
  364. 17:59So over here I'll just remove the dollar
  365. 18:01sign
  366. 18:04and the two decimal places.
  367. 18:10Then click add.
  368. 18:12And you can see that it's formatted
  369. 18:14nicely. And I also wanted to add a
  370. 18:18background. So click on solid fill. And
  371. 18:21over here let's choose white color and
  372. 18:2320%
  373. 18:25transparency.
  374. 18:28And let's also bowl the data labels. So
  375. 18:31go to home and click on the ball. Or you
  376. 18:34can press on CtrlB to bold the data
  377. 18:38labels. And next let's also format the
  378. 18:41number format in this axis.
  379. 18:45So go to
  380. 18:47click on this and then go to numbers and
  381. 18:51over here I will just choose the one
  382. 18:53that I've modified for the data labels
  383. 18:56over here. So click this one and you can
  384. 18:59see that the access numbers has been
  385. 19:01formatted nicely. And let's also add
  386. 19:04access titles.
  387. 19:08So let's rename it.
  388. 19:11And let's also rename
  389. 19:13the title of the chart.
  390. 19:16And I'm going to bold the title.
  391. 19:19And let's also change the color to
  392. 19:21something
  393. 19:23darker.
  394. 19:26And let's remove the grid line as well.
  395. 19:30All right. So now we've done formatting
  396. 19:31this chart and let's create the next
  397. 19:35pivot table which is the revenue by
  398. 19:37region. So click inside the pivot table.
  399. 19:40Then go to pivot table analyze tab. Then
  400. 19:43click on pivot chart. And I'm going to
  401. 19:45use clustered column chart. So click on
  402. 19:48okay. And I'm going to format this chart
  403. 19:52similar to the revenue by month.
  404. 19:56[music]
  405. 20:06And next, let's create this revenue boy
  406. 20:09category. And I'm going to use a cluster
  407. 20:12column chart as well.
  408. 20:19[music]
  409. 20:27And for this revenue by category, let's
  410. 20:29also sort this from the highest revenue
  411. 20:33to the lowest. To sort this product
  412. 20:36category, I will just click inside this
  413. 20:38pivot table and then sort it over here.
  414. 20:41So more sort options, then go to
  415. 20:43descending order by the sum of revenue,
  416. 20:45then click on okay. And you can see that
  417. 20:48the chart updated as well because the
  418. 20:51pivot chart and the pivot tables are
  419. 20:53connected. So anything that you do to
  420. 20:56the chart, it will affect the pivot
  421. 20:58tables and anything you do to the pivot
  422. 21:00table will affect the chart as well.
  423. 21:04And next let's move on to creating pivot
  424. 21:07chart for revenue by channel. And for
  425. 21:10channel I'm going to use a donut chart.
  426. 21:13So same click inside the pivot table. Go
  427. 21:16to pivot table analyze tab. Then click
  428. 21:18on pivot chart
  429. 21:21and I'm going to choose this donut
  430. 21:23chart. Then click on okay.
  431. 21:27So let's format this chart as well.
  432. 21:37[music]
  433. 21:40And lastly, let's create a pivot chart
  434. 21:42for revenue by product. And these are
  435. 21:45the top five product.
  436. 21:50And for this top five product, I'm going
  437. 21:52to create a bar chart. So let's create a
  438. 21:55clustered bar. Then click on okay.
  439. 21:59And this is our chart.
  440. 22:04And let's format it.
  441. 22:07[music]
  442. 22:12All
  443. 22:16right. Now I've done formatting this bar
  444. 22:19chart. But notice that the chart is not
  445. 22:21arranged from the highest revenue to the
  446. 22:24lowest. But in our pivot table, we have
  447. 22:26already sorted descending order by the
  448. 22:28sum of revenue. So to solve this, what
  449. 22:32we can do here is to click at this axis
  450. 22:35and then go to the axis option and click
  451. 22:38on categories in reverse order. And now
  452. 22:42the product are arranged descending
  453. 22:44order from the highest revenue product
  454. 22:46to the lowest revenue product.
  455. 22:50Now we have done creating all the pivot
  456. 22:52charts and pivot table. Next let's
  457. 22:55rename all the pivot tables and pivot
  458. 22:57chart.
  459. 22:59Just click inside the pivot table. Then
  460. 23:02go to pivot table analyze tab. And over
  461. 23:04here I can rename the pivot table. So
  462. 23:08just rename anything that you can
  463. 23:10understand so that it's easier to work
  464. 23:13on all these tables later.
  465. 23:16[music]
  466. 23:31And remember to also rename the pivot
  467. 23:33chart as well.
  468. 23:44>> Now we have done renaming all the pivot
  469. 23:46tables and there's a pivot chart and now
  470. 23:48let's insert slicer.
  471. 23:52So just click inside any pivot table and
  472. 23:55then go to pivot table analyze tab and
  473. 23:58over here I can insert slicer
  474. 24:01and let's insert slicer for the region
  475. 24:05and product category
  476. 24:07sales channels and also
  477. 24:11customer type. All right. So these four
  478. 24:13slices then click on okay. And now we
  479. 24:17have the four slices.
  480. 24:20And for now these four slices are for
  481. 24:22the sum of revenue. So if I click on any
  482. 24:26of these slices you will see that the
  483. 24:28sum of revenue changes but the others
  484. 24:30remain the same. So what I need to do
  485. 24:33now is to go to report connections to
  486. 24:37connect all these slices to all of the
  487. 24:40pivot tables and pivot chart.
  488. 24:43So click in any of the slicer then go to
  489. 24:46slicer tab then click on rep connections
  490. 24:51and over here you can see that it is
  491. 24:54connected to the first pivot tables and
  492. 24:57I want it to connect to all of them and
  493. 25:00this is why naming the pivot tables and
  494. 25:02pivot charts are very important because
  495. 25:04sometimes you want your slices to only
  496. 25:08be connected to a particular pivot
  497. 25:11tables And with the name you know that
  498. 25:13which one that you want to select. Then
  499. 25:17click on okay. And do the same for the
  500. 25:20other slices as well.
  501. 25:25All right. And now you can see that when
  502. 25:27I click on the slices all of the pivot
  503. 25:30tables and the pivot chart changes.
  504. 25:35And next let's also insert timeline.
  505. 25:39So timeline works similar to the
  506. 25:42slicers. Just click inside the pivot
  507. 25:44table. Then go to pivot table analyze
  508. 25:47tab. Then it's beside the insert slicer.
  509. 25:50You'll see this insert timeline.
  510. 25:53And there's only one date in my data
  511. 25:56set. So just click on it. Then click on
  512. 25:58okay.
  513. 26:01And for the timeline, I'm going to
  514. 26:04create four timelines for the year,
  515. 26:07quarters, month, and days. And
  516. 26:12why I do that? It's because later when
  517. 26:16we have done creating the dashboard,
  518. 26:18we're going to protect the worksheet for
  519. 26:21the dashboard. And when we protected the
  520. 26:25worksheet,
  521. 26:26this selection will be locked and it
  522. 26:29cannot be changed. So I'll set the
  523. 26:31period now so that after the sheet is
  524. 26:34protected we can still filter all of
  525. 26:36this period. And next is to set the
  526. 26:39report connections for the timelines to
  527. 26:41be connected to all of the pivot tables.
  528. 26:44So what I need to do now is to click on
  529. 26:48this timeline then go to the timeline
  530. 26:50tab. Then over here you see this report
  531. 26:53connections
  532. 26:54and similar to slicer just tick on the
  533. 26:58pivot tables that you want it to be
  534. 27:00connected
  535. 27:02then click on okay
  536. 27:04and one thing that it's different it's
  537. 27:07that once you set for one of this
  538. 27:10timeline because they all of this
  539. 27:12timeline slicer they are the same
  540. 27:16timeline so I do not need to set the
  541. 27:19report connections for the other
  542. 27:21timelines. They are all the same. They
  543. 27:23are all connected to all of the pivot
  544. 27:24tables that I've set just now. Next,
  545. 27:28let's create a new worksheet for the
  546. 27:30dashboard. And let's rename it to be
  547. 27:33sales dashboard.
  548. 27:36And before moving all the pivot charts,
  549. 27:39timelines, and slicer, I'm going to
  550. 27:41decide on the dashboard canvas. So, let
  551. 27:45me go to review tab and then close the
  552. 27:47formula bar and the headings.
  553. 27:50And I'm going to highlight one of this
  554. 27:52cell
  555. 27:54and I'm going to click on this down
  556. 27:56button and go to full screen mode. And
  557. 27:58this highlighted cell will be my
  558. 28:00reference on where my dashboard should
  559. 28:02be in.
  560. 28:04So I want my dashboard to be within this
  561. 28:09yellow highlighted cell. Basically these
  562. 28:11highlighted cells are my reference.
  563. 28:14And let me set this to always show
  564. 28:17ribbon again. and then turn on the
  565. 28:20formula bar and the headings. And let's
  566. 28:22set the first three rows to be the
  567. 28:26title. So, let's highlight this to be a
  568. 28:29dark blue for the title.
  569. 28:33And let's go back to the supporting
  570. 28:35pivot. And I'm going to move all this
  571. 28:39timeline slicer and the pivot chart to
  572. 28:41the sales dashboard worksheet. And I'm
  573. 28:43going to press Ctrl to select all of the
  574. 28:45timelines and slicer.
  575. 28:51And I'm going to press on Ctrl X to cut
  576. 28:54all the slices
  577. 28:56to the sales dashboard. And Ctrl + V to
  578. 28:59paste all of this slicer and the
  579. 29:02timelines. And next, I'm going to do the
  580. 29:04same for the pivot chart as well. So,
  581. 29:07Ctrl to select all of the pivot charts.
  582. 29:12Then, Ctrl X
  583. 29:15and Ctrl V to move all of the charts to
  584. 29:18the sales dashboard worksheet. And let's
  585. 29:21arrange the slicer first. So, I'm going
  586. 29:25to put my slicer to the left side of the
  587. 29:27dashboard.
  588. 29:29So, let's just move all the timelines
  589. 29:32away first.
  590. 29:37And just make sure that everything is
  591. 29:39within this highlighted cell.
  592. 29:42And next, I want to make sure that all
  593. 29:44of the words on the slicer can be seen.
  594. 29:47So over here, this product category is
  595. 29:49too small for the word category. So I'm
  596. 29:52going to make it a little bit bigger.
  597. 29:55And click on the slicer here. You'll see
  598. 29:58the width. Let's set it to 5.6.
  599. 30:03And let's do the same for all of the
  600. 30:05slices.
  601. 30:07And next, I'm going to just quickly
  602. 30:09align all of the slicer.
  603. 30:12So, Ctrl N, select all of the slices,
  604. 30:15then go to slicer, and then over to
  605. 30:17align, I'm going to align center and
  606. 30:20distribute it vertically.
  607. 30:25All right. And next, I'm going to place
  608. 30:28all the timelines to be at the top of
  609. 30:31this dashboard.
  610. 30:32So, let's go with the year first and
  611. 30:36then quarters,
  612. 30:38months, and days.
  613. 30:43And I'm going to select all of the
  614. 30:45timelines and slicer and then align it
  615. 30:48to the top.
  616. 30:52And next, select all the slicer
  617. 30:57and distribute it horizontally.
  618. 31:01And I also want to just quickly rename
  619. 31:04this caption on the timeline. So this
  620. 31:08should be year
  621. 31:10and this should be quarters
  622. 31:15and this should be month
  623. 31:20and this is the days.
  624. 31:24And next I'll arrange the pivot chart.
  625. 31:26So there are five charts over here. So,
  626. 31:29I'm going to put two and three at the
  627. 31:31bottom. And I'm going to put the revenue
  628. 31:34by month and the revenue by region side
  629. 31:37by side and revenue by product category
  630. 31:41and sales channel. And this top five
  631. 31:43products will be at the bottom. And I'm
  632. 31:46going to make a space for the KPI cards.
  633. 31:48So, I'm going to just leave a space
  634. 31:51roughly like this over here. And first
  635. 31:53I'm going to lengthen this
  636. 31:56pivot chart.
  637. 31:59And then I'm going to go to format to
  638. 32:01see the width. So let's set this to 42
  639. 32:04cm and 7.7 cm for the height. And this
  640. 32:10length is going to divide by 2 for the
  641. 32:13revenue by month and the revenue by
  642. 32:15region. And 42 / 2 is 21. So, my top is
  643. 32:21going to be 21 cm. And same goes with
  644. 32:25this one.
  645. 32:34Next, I'm just going to arrange this
  646. 32:37align to the left
  647. 32:40and revenue by region align
  648. 32:44to the right.
  649. 32:48And next I'm going to select these two
  650. 32:51chart and align middle.
  651. 32:56All right. And next is the three pivot
  652. 33:00chart below. And since now we know that
  653. 33:03the length is 42. So all of this chart
  654. 33:06is going to be 42 / by 3 which is 14 cm.
  655. 33:12So click on the pivot chart then go to
  656. 33:14format and then set this to 14 cm and
  657. 33:18the height is 7.7
  658. 33:21and same goes with the other charts.
  659. 33:25All right. And next let's align to left
  660. 33:30and align to the right for the top five
  661. 33:32product.
  662. 33:37And make sure to also align to the
  663. 33:41bottom as well with the slicer
  664. 33:49[music]
  665. 33:56[music]
  666. 33:58and then distribute this horizontally.
  667. 34:03And since this customer type slicer is
  668. 34:06shifted just now when we align to the
  669. 34:08bottom. So I'm going to just distribute
  670. 34:11this slicer vertically again.
  671. 34:18And let's move these two charts a little
  672. 34:20bit down because I want to leave the
  673. 34:22space for the KPI cards. So select both
  674. 34:25of these chart and on the keyboard press
  675. 34:28the down button. So we do not shift both
  676. 34:31of this chart to the left or the right.
  677. 34:34So we are just moving down.
  678. 34:37And now let's create the KPI cuts. So
  679. 34:40this KPI cut is for this pivot tables.
  680. 34:44The total revenue, total orders, the
  681. 34:47total quantity sold and the average
  682. 34:50order value.
  683. 34:52So first I'm going to insert a shape. Go
  684. 34:55to insert and then go to shape. And
  685. 34:57let's choose this rounded rectangle.
  686. 35:03And I'm going to change the design to be
  687. 35:06this one. So a white background and a
  688. 35:08light blue outline.
  689. 35:10And let's set this height to be 3 cm.
  690. 35:15And because there are four of this kpa
  691. 35:17card, so 42 / by 4,
  692. 35:21it's around 10.5 cm.
  693. 35:25And I want it to be a little bit more
  694. 35:28spacing. So I'm going to set it to 10
  695. 35:30cm.
  696. 35:33All right.
  697. 35:36And next I'm going to insert text box
  698. 35:39for
  699. 35:41the value.
  700. 35:44And let's put it no outline and no fill.
  701. 35:49And this text box is going to show the
  702. 35:52value in each of this pivot table. So to
  703. 35:55show the value I have to go to the
  704. 35:57formula bar and type in equals
  705. 36:01and then select on the pivot table then
  706. 36:04press on enter and you can see that this
  707. 36:08formula
  708. 36:10is missing a range reference or a
  709. 36:12defined name. All right. Basically if
  710. 36:15we're pointing at a pivot table this get
  711. 36:19pivot data formula will be entered
  712. 36:21inside automatically. So we do not want
  713. 36:23that. So I'll just remove this part of
  714. 36:26the function
  715. 36:29and then also remove the close
  716. 36:31parenthesis. So this is the supporting
  717. 36:34pivot which is the worksheet name and
  718. 36:37then B19. But make sure you're pointing
  719. 36:40at the correct cell. Actually B19 is the
  720. 36:44header for the pivot tables and the
  721. 36:46value is actually in B20.
  722. 36:49So,
  723. 36:51we'll just put this B20. Then press on
  724. 36:53enter. And now we have this value. And
  725. 36:57let's format it.
  726. 37:02[music]
  727. 37:03And I'm going to set this to
  728. 37:05maybe 38.
  729. 37:11And bold it. And let's change the color
  730. 37:14as well.
  731. 37:18And I'm going to duplicate this text box
  732. 37:20by pressing Ctrl D. And this will be my
  733. 37:24title for the KPI card. So this is the
  734. 37:27total revenue.
  735. 37:31And let's set this to a black color
  736. 37:33text.
  737. 37:36And also reduce the font size.
  738. 37:39All right, let's set it 20.
  739. 37:43And I'm going to align both of this text
  740. 37:46box to the center.
  741. 37:52All right. I'm going to shift it a
  742. 37:53little bit here. All right.
  743. 37:58And next I'm going to insert icon. So go
  744. 38:01to insert and then press on icons.
  745. 38:05And this might take a little while to
  746. 38:07load. And over here you can search all
  747. 38:10kind of icon that you want to put in. So
  748. 38:13I'm going to put a dollar sign. Then
  749. 38:15select it and press on this insert.
  750. 38:19And here I have my icon. And I'm going
  751. 38:23to just fill in a different color.
  752. 38:28So I'm going to put the same color as a
  753. 38:30value over here. And I'm going to resize
  754. 38:32it to be a little bit smaller. So to
  755. 38:35resize it without changing the shape,
  756. 38:39just press on control and then resize
  757. 38:42it. And you can also set it over here as
  758. 38:45well. So let's put maybe 1.7
  759. 38:51or maybe 1.8.
  760. 38:55All right. Next, I'm going to group
  761. 38:56these two text box together.
  762. 38:59And let's
  763. 39:02shift it to the middle a little bit.
  764. 39:08I think I'm going to make this
  765. 39:11icon a little bit bigger,
  766. 39:152 cm.
  767. 39:18And next, I'm going to align this icon
  768. 39:20and the two text box
  769. 39:24to the middle. And next, I'm going to
  770. 39:27group this text box and the icon
  771. 39:30together. And then align with the shape
  772. 39:33behind. Align center and align middle.
  773. 39:38Right, I think this is good enough. And
  774. 39:40let's group these two together as well.
  775. 39:44And I'm going to press on Ctrl D three
  776. 39:46times for the total orders, the sum of
  777. 39:50quantity, and also the average order
  778. 39:52value.
  779. 40:02And next what I need to do is to double
  780. 40:05click inside this text box and to change
  781. 40:07the cell reference.
  782. 40:09So the total orders is in E20.
  783. 40:14So I'm going to change this to E20. And
  784. 40:17once I change it, I will need to
  785. 40:19reformat this text again. So I'm going
  786. 40:22to do this three times for the quantity
  787. 40:24sold and also the average order value.
  788. 40:26And I'm going to fast forward this part.
  789. 40:32And to change the icon, I can just right
  790. 40:34click at the icon and then change
  791. 40:36graphic and from icon.
  792. 40:40And I'm going to do the same for this
  793. 40:42two as well.
  794. 40:53And since this text is a little bit too
  795. 40:55big, so let's set it to a little bit
  796. 40:57smaller,
  797. 41:01maybe 16. [music]
  798. 41:10And let's do [music] the same for the
  799. 41:11rest.
  800. 41:14All right. And last part is to align the
  801. 41:16shape. So first I'm going to align to
  802. 41:19the left
  803. 41:22and then align [music]
  804. 41:23to the right.
  805. 41:30And then next select all of these KPA
  806. 41:32cards
  807. 41:36and align
  808. 41:39middle and then distribute it
  809. 41:42horizontally.
  810. 41:56All right. And next, we're going to
  811. 41:57format the title. I would like to just
  812. 42:00put a thing called
  813. 42:03date updated through.
  814. 42:08And let's set this to a white text.
  815. 42:12And then I'm going to use the max
  816. 42:15function and go back to my sales data
  817. 42:18and select the entire date column. Close
  818. 42:21parenthesis
  819. 42:24and change this to a date format
  820. 42:27and white text. Basically what this does
  821. 42:30is to tell the audience or the user that
  822. 42:33the data or the date for this dashboard
  823. 42:36it's updated through this date.
  824. 42:40And let's also add an icon.
  825. 42:44Let's change it to white color and
  826. 42:48resize it.
  827. 42:53[music]
  828. 43:03Let's also create a title [music]
  829. 43:05for this dashboard.
  830. 43:16So I'll just merge and center this part
  831. 43:18of the cell and let's name it as sales
  832. 43:22dashboard.
  833. 43:33[music]
  834. 43:40And let's also insert a logo. So go to
  835. 43:43insert and then go to pictures. And I'm
  836. 43:46going to place over the cells.
  837. 43:53Right. So this image is a little bit too
  838. 43:55big. Let's set it to maybe 2 cm or maybe
  839. 43:59one.
  840. 44:04Right. So let's place it over here.
  841. 44:08And we're almost done. Let's just remove
  842. 44:10this cell reference that I have put in
  843. 44:13just now.
  844. 44:15So I'm going to clear all.
  845. 44:17And same goes with this this one.
  846. 44:26All right. And the last part is that I'm
  847. 44:28going to protect this worksheet and I'm
  848. 44:31going to close the formula bar, the
  849. 44:33headings and also make this to a full
  850. 44:35screen mode. But before that, I'm going
  851. 44:38to lock all the slicer and the
  852. 44:40timelines. So I'm going to click in this
  853. 44:43slicer and then go to size and property.
  854. 44:50And over here I'm going to click on the
  855. 44:53move and size with the cell. And I'm
  856. 44:55going to uncheck the lock. And then for
  857. 44:58the position and layout, I'm going to
  858. 45:01disable resizing and moving.
  859. 45:04And do the same for all the slices.
  860. 45:10And next, we're going to set the same
  861. 45:11thing for the timeline. So, right click
  862. 45:14and then go to size and property. But
  863. 45:16notice that we can't disable sizing and
  864. 45:18moving. So, I'm going to just uncheck
  865. 45:20the lock and then click on the move all
  866. 45:23size with cells
  867. 45:29[music] and then do the same with all
  868. 45:31the timelines.
  869. 45:33And the last part, let's go to view and
  870. 45:37close the formula bar and the headings
  871. 45:40and then go to review to protect this
  872. 45:43worksheet.
  873. 45:45So I'm going to uncheck the select lock
  874. 45:48cells and select unlock cell. And over
  875. 45:50here I'm going to check this use pivot
  876. 45:52table and pivot chart. And you can put
  877. 45:56in password if you want to. Then click
  878. 45:58on okay. And lastly I am going to close
  879. 46:03the grid lines as well.
  880. 46:07And then let's go to the full screen
  881. 46:09mode. And this is our Excel dashboard.
  882. 46:13And you can see that I could not move
  883. 46:15all the worksheets. So this dashboard is
  884. 46:17protected. So your users can use the
  885. 46:20dashboard while not accidentally move
  886. 46:22your pivot chron and things like that.
  887. 46:24But one thing to note that because for
  888. 46:27the timeline we couldn't really disable
  889. 46:30the movement. So you can actually
  890. 46:33accidentally resize the timelines. And
  891. 46:36this is the flaw of this Excel
  892. 46:38dashboard. And I think up until now
  893. 46:40there's still no solution for this
  894. 46:42issue. But if anyone of you know how to
  895. 46:44solve this definitely comment down below
  896. 46:47and let me know. But basically this is
  897. 46:50it. And let me just save this Excel
  898. 46:54dashboard.
  899. 46:56Now that we have completed the
  900. 46:57dashboard, let's do a quick final walk
  901. 47:00through. At the top we have the title
  902. 47:02and the data updated date. On the left
  903. 47:06side we have the slices for regions,
  904. 47:08product category, sales channel, and
  905. 47:11customer type. And at the top we also
  906. 47:14have the timelines for date filtering.
  907. 47:17And the KPI section summarizes the total
  908. 47:20revenue, total orders, total quantity
  909. 47:23sold and average order value. The charts
  910. 47:26below helps us to understand the revenue
  911. 47:28by month and compare revenue by region,
  912. 47:32category and sales channel and also
  913. 47:35identify the top five products by
  914. 47:37revenue.
  915. 47:39And if I select a slicer, for example, I
  916. 47:42selected the east region. So this is the
  917. 47:45number for the total revenue for east
  918. 47:48region, the total orders. And I can also
  919. 47:51have a look at what are the top five
  920. 47:53products by revenue for east region. And
  921. 47:56if I want a more detailed look, I can
  922. 48:00also filter a particular month. For
  923. 48:02example, if I click on February, then
  924. 48:05this is the total revenue for February
  925. 48:09for East region. And to clear filter, I
  926. 48:12can just click on the clear filter at
  927. 48:15the top right of the slicer and the
  928. 48:17timelines to clear this filter. And I
  929. 48:20can do multiple filtering as well. For
  930. 48:23example, if I click on south region, I
  931. 48:26can also click on the computers product
  932. 48:29category. So these all the details for
  933. 48:31the computers product category for south
  934. 48:35region and if I want to have a look at
  935. 48:37the second quarters I can do that as
  936. 48:40well. So instead of just looking through
  937. 48:44the raw data or opening multiple pivot
  938. 48:46tables one by one, the user can use this
  939. 48:49dashboard to quickly review the overall
  940. 48:52sales performance, compare different
  941. 48:54regions and identify where to
  942. 48:56investigate further.
  943. 49:00Before we end, I just want to say
  944. 49:02something. In real work, building a
  945. 49:04dashboard is not just about inserting
  946. 49:06charts or making things look nice. A big
  947. 49:10part of the work is to [music]
  948. 49:11understand what the dashboard needs to
  949. 49:14answer. So if you're building a
  950. 49:16dashboard for a team, [music] take time
  951. 49:18to understand what they need, what
  952. 49:20business question they want to answer,
  953. 49:23and what decisions they [music] need to
  954. 49:25make from this dashboard. Also, if this
  955. 49:28video is around an hour, it doesn't mean
  956. 49:30that I built [music] this dashboard
  957. 49:32perfectly in an hour on the first
  958. 49:34attempt. There are a lot of thinking,
  959. 49:37[music] testing, adjusting and designing
  960. 49:39behind the scenes. Sometimes you need to
  961. 49:41take time to understand the data,
  962. 49:44cleaning data, choose [music] the right
  963. 49:46pivot tables or pivot charts and decide
  964. 49:48on the best layout. So if you are
  965. 49:51building your own dashboard and [music]
  966. 49:53it takes a longer time, that's totally
  967. 49:55fine and normal. Dashboard building is a
  968. 49:58skill. [music] The more you practice,
  969. 49:59the better you become in turning raw
  970. 50:01data into a clear summary.
  971. 50:03>> [music]
  972. 50:04>> And if you want more hands-on practice,
  973. 50:06I'm currently upgrading my pivot tables
  974. 50:08practice pack. The updated version will
  975. 50:11include more pivot tables exercises
  976. 50:13[music] and dashboard practice as well,
  977. 50:16so you can practice on turning raw data
  978. 50:19into useful business summaries. So stay
  979. 50:22tuned and I'll share more details soon.
  980. 50:24[music] And thanks for watching. If you
  981. 50:27find this tutorial useful, make sure to
  982. 50:29like, follow or subscribe me. And I'll
  983. 50:31see you in the next one. Bye.

About this transcript

This page contains the full transcript of Build an Interactive Excel Dashboard Using PivotTables by Marg Analytics, generated from the public captions YouTube serves with the video. The transcript has 6,376 words across 983 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.

What you can do with it

Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to translate the transcript into 100+ languages.

Free YouTube transcript tool

YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.