Xeplr BI · 13 videos · 23:03
Build a dashboard in Xeplr BI
Thirteen short videos that build one real dashboard, E-Commerce Statistics, from an empty board: the data behind it, the nightly data move it needs, revenue tiles that compare this month with the last, a ranking, charts and a sparkline. Each one is a minute or two, and each starts where the last one stopped.
Tutorial 1Start a dashboard: model, links and date filter
Create the dashboard, bring in its data, link the data, and pick a period.
In the docs: 05.2 Create a dashboard
Tutorial 2The datasets behind the dashboard: two periods and a union
Before any widget, the data: one filter that brings this period and the one before, and a dataset stacked from two parts.
Chapters
- 0:00 Intro
- 0:10 The orders dataset: seven joined tables
- 0:20 One filter, two periods: placed_at between :prev_start_date and :end_date
- 0:31 The built-in parameters come from the board's date filter
- 0:36 A sample run: June to July 2023
- 0:50 New Vs Old Customers: a union of two parts
- 0:59 UNION ALL and Part 2
- 1:04 The same two-period filter on both parts
In the docs: 03.7 Filters and parameters, 03.8 Stack tables (union)
Tutorial 3Where new customers come from: a scheduled data move
The New Customers tile needs each customer's first purchase date. That comes from a data move: a SQL query, written into its own table, every night.
Chapters
- 0:00 Intro
- 0:12 Move Data: the New Customers move
- 0:17 Source: SQL query, target: new_customers, write: replace
- 0:29 Step 1, Source: the SQL (each customer's earliest order)
- 0:41 Step 2, Sample the source
- 0:46 Step 3, Target: min(placed_at) becomes firstPurchased
- 0:53 Step 4, Write: Replace
- 1:00 Step 5, Run: scheduled daily at 02:00
- 1:07 Run history and Roll back
- 1:13 A dataset reads new_customers like any table
In the docs: 02.4 Move data between databases
Tutorial 4Build a Smart Tile: this month vs last month
A Total Revenue tile from an empty widget: one query, pivoted by month, newest first, shown in crores.
Chapters
- 0:00 Intro
- 0:08 Set the board to July 2023
- 0:14 + Widget, then Save once
- 0:20 Tick placed_at and line_total
- 0:26 Move line_total to Values
- 0:31 Pivot on placed_at, newest first
- 0:40 Show the date as months
- 0:47 line_total as currency, in crores
- 0:57 Save, back to the canvas
- 1:02 Type: Smart Tile
- 1:09 Name it
- 1:15 Element titles: This Period, Vs Prev Period
- 1:26 Size the tile, and Save
In the docs: 05.3 Add and edit widgets
Tutorial 5Show the change as a trend: month-over-month %
Add a Change column worked out from the columns to its left, and show it as a green or red trend arrow.
Chapters
- 0:00 Intro
- 0:09 Set the date to July 2023
- 0:14 Open the tile's editor
- 0:19 + Column: a column worked out from the ones to its left
- 0:23 $thisrow[-1] and $thisrow[-2]
- 0:30 Name it Change: (July - June) / June
- 0:40 Format: Percent
- 0:49 Save, back to the canvas
- 0:54 The third element: Change
- 0:59 Show as trend
- 1:06 Save: revenue up 15.5% on June
In the docs: 05.3 Add and edit widgets, 04.12 Refer to the current row
Tutorial 6Conditional formatting on a Smart Tile
A rule colours a value when a condition is met. Here, This Period turns red whenever revenue is down on the period before.
In the docs: 05.4 Style and highlight
Tutorial 7Step month by month with the ‹ › date arrows
When a dashboard's date is one whole period (a month, a quarter or a year), arrows step to the period before or after. Watch the formatting rule fire in November.
In the docs: 05.5 Filters on a dashboard
Tutorial 8Top 5 and rank: keep only the current month
A Top 5 Categories bar chart: rank by revenue, show the rank, and keep only the month picked on the board.
Chapters
- 0:00 Intro
- 0:08 + Widget, Save once
- 0:15 Tick name and line_total, move line_total to Values
- 0:23 The dataset brings two months; a ranking needs one
- 0:28 Filter rows: placed_at is between :start_date, :end_date
- 0:43 Untick placed_at: the filter stays
- 0:55 Show: Top 5, with rank
- 1:00 Horizontal bar, named Top 5 Categories
- 1:12 Drag beside the tile, and Save
In the docs: 04.5 Pivot, top N and more
Tutorial 9Column formulas ($thisrow) for average order value
A Top 10 Products table with an average-order-value column worked out from the columns beside it, like a spreadsheet formula. With tips on summing vs counting, and why Top N does not sort.
Chapters
- 0:00 Intro
- 0:13 + Widget, Save once
- 0:22 Tick products_name, line_total and id; move the numbers to Values
- 0:33 Count id instead of summing it
- 0:50 Keep this month only
- 1:10 Top 10 with rank
- 1:17 Top 10 picks rows, it does not order them; sort by line_total
- 1:27 line_total as currency
- 1:33 + Column: AoV = $thisrow[-2] / $thisrow[-1]
- 1:52 Save; switch off sorting, column filters and pages
- 2:07 Name it Top 10 Products, place it, Save
In the docs: 04.12 Refer to the current row, 04.7 Formulas
Tutorial 10A values-only pie with a hidden column: new vs returning customers
A pie from two numbers: a column formula works out the returning customers, and a hidden column keeps its place so the formula still reads it.
Chapters
- 0:00 Intro
- 0:13 + Widget, Save once
- 0:20 Search finds a column in every dataset
- 0:27 New Customers and Old Customers, as Values
- 0:40 A values-only report: one row of values
- 0:46 Rename Old Customers to All Customers
- 0:55 This month only: date is between :start_date, :end_date
- 1:12 + Column: Old Customers = $thisrow[-1] - $thisrow[-2]
- 1:25 Hide All Customers with its eye
- 1:40 Pie, named New vs Returning Customers
- 1:55 Data labels: name, value and share
- 2:05 Save
In the docs: 04.8 Charts
Tutorial 11Copy a tile, change its data: total orders and average order value
The quickest way to a new tile is a finished one: copy it and change only its data. Titles, trend and rules come along.
In the docs: 05.6 Layout, copy and reuse
Tutorial 12Bars and a line on two axes: daily revenue vs orders
A Daily Stats chart: revenue as bars on the left axis, orders as a line on the right, one row per day of the month picked.
Chapters
- 0:00 Intro
- 0:09 + Widget, Save once
- 0:15 placed_at, line_total and a count of id
- 0:31 One row per day, this month only
- 0:50 Sort the days
- 1:05 Currency, Save, back to the canvas
- 1:13 Area chart, named Daily Stats
- 1:22 Series: revenue as bars, orders as a line on the right
- 1:35 A series drawn unlike the chart jumps to the right axis
- 1:53 Place it and Save
In the docs: 04.8 Charts
Tutorial 13A sparkline under a tile: layer, align and group
A tile says how much; a sparkline says how it got there. A stripped-down area chart, laid along the bottom of a tile and grouped with it so the two move as one.
Chapters
- 0:00 Intro
- 0:10 A daily revenue widget, this month only, sorted by day
- 0:45 Area chart, named Revenue sparkline
- 0:55 Switch off the card, title, legend, tooltip, axes and grain buttons
- 1:20 Fit to data starts the axis near the lowest day
- 1:27 Green, with a faint fill
- 1:37 Size it to the tile
- 1:50 Select both, Align Top and Left
- 2:05 Drag it to the tile's bottom edge
- 2:12 Shift-click and Group
- 2:20 Save
In the docs: 05.6 Layout, copy and reuse
See it against your own data
A demo runs on your schema, not a sample dataset. Thirty minutes, no deck.












