Build your first sales dashboard
Which channel brought in the most paid sales? Start with six simulated orders, answer the question in the visual query editor, then put the chart on a dashboard. The finished chart has three bars. Web leads with 300. The steps and screenshots were checked in Topbase 0.2.6.
Open the sample orders
- Download the orders database. Ask a Topbase administrator to connect the SQLite file and give you access. If you are the administrator, name the connection Sales orders. The file must be readable by the Topbase server.
- Open Source data, choose Sales orders, then select orders. Each row is one order. The table contains five fields.
order_ididentifies the order,order_dategives the date,channelis the sales channel,amountis the order amount andstatusdistinguishes paid from refunded orders. - Check order 1003. Its amount is 50 and its status is refunded. The question asks about paid sales, so this row should drop out before you sum the amounts.
The Excel upload exercise uses the same six orders. Use the SQLite connection for this dashboard so that the query editor can read the records and sum a numeric column.
Ask the question in the visual editor
- With orders open, click Expand query editor if the editor is collapsed, then choose Visual query.
- In Filter, choose
status, select the equality operator and enterpaid. In Summarize, choose Sum, selectamountas the field and choosechannelunder Group. - Open Sort, select the aggregate result and choose descending order. Click Run and preview. Compare the result with the table below before you choose a chart.
| Channel | Sum of amount |
|---|---|
| Web | 300 |
| Partner | 200 |
| Store | 180 |
The three groups add up to 680 across five paid orders. If Web shows 350, check the status filter. If it shows 2, the calculation is counting Web orders. Change the calculation to Sum and run the query again.

Save a chart
- Choose Save analysis, enter Sales by channel and choose a writable group. Your personal group works for this exercise. Choose a group your colleagues can open if they will use the saved analysis.
- On the saved analysis, choose Column chart. Use
channelas the category and the summed amount as the value. Hover over the Web bar to check that it shows 300. See chart settings for axis and formatting options.

Put the answer on a dashboard
- Open Dashboards → New dashboard. Enter edit mode if the canvas opens in view mode.
- Choose Insert → Add analysis, search for Sales by channel, and select the result. Drag the card by its handle and resize it until the three channel names fit.
- Choose Preview to see the dashboard as a reader. Finish editing and reopen the dashboard from the list to check the saved layout. To give another person access, follow dashboard sharing.
If the analysis is missing from the insert menu, first open it from your analyses and check its name and group. Clear the group filter in the insert menu, then search again.
