TotalApp Docs

Data Lab

Ask your business data a question in plain language and get an answer, a table, a chart and an export.

Overview

Data Lab turns a question such as “How many sales orders were created each month?” into a database query, runs it on your workspace data and shows the result. You never write SQL, but you can always read the query that was run.

Open it from Data Analysis → Data Lab. For a saved, repeatable report with filters, use the Report Builder instead.

Ask your first question

  1. Type your question in the box, for example How many sales orders are there? or Which customer has the highest total? You can write in your own language.
  2. Press Run Query. The answer appears in one or two sentences, followed by the query that was run.
  3. Read the table below it. Switch to Chart for a bar chart; the view you pick stays for your next questions. PNG saves what you see (table or chart) as an image, and CSV / JSON download the data.

Tip

Questions that group or total things work best: “per month”, “per customer”, “top 5”, “how many”. Mention a period (“this year”, “last month”) when it matters.

What data it can read

AreaWhat you can ask aboutWho can ask
SalesSales orders and their lines, quotations and their lines, the sales catalogEveryone in the workspace
PurchasingPurchase orders and their items, purchase productsEveryone in the workspace
InventoryThe product list with stock levels and pricesEveryone in the workspace
CRMDeals and contactsEveryone in the workspace
FinanceReceivables, payables, invoices and expensesWorkspace admins, and people whose role has Query financial data

Data Lab only reads this fixed list. Salaries, identity numbers, e-mail addresses, medical records and case files are never part of it. It can only read: it cannot change, add or delete anything, and it only ever sees your own workspace.

Giving someone access to finance data

In HR → Organization → Roles and Permissions, open or create a role, go to the Capabilities tab and tick Query financial data under Data Access Capabilities. Everyone holding that role can then ask finance questions in Data Lab and in the assistants that use it. Without it, a finance question gets the answer that the role does not allow that data.

Where the answers come from

Which source answers your questions is set for the whole workspace in Settings → Database.

  • Local (Render disk) – the default. Your current data is read when you ask, so the answer is always up to date.
  • Cloudflare (D1) – the answer comes from your workspace’s copy in Cloudflare D1. A line under the question box shows how old the copy is. If the Settings option Keep the D1 copy up to date automatically is on, anything that changed is copied again before your question is answered; otherwise an admin refreshes it with Sync to D1.

In the AI assistants

The Sales Dashboard AI Assistant can also answer questions that go beyond the figures on the dashboard, for example “Which customer ordered the most this year?”. You simply get a quick answer in plain language. It only draws on what your own role is allowed to see and never changes your data. This is available with a Cloud LLM; with a Local LLM the assistant answers from the figures on screen.

Your plan

Each question counts as one AI request on your plan, however many steps it takes behind the scenes. A plan that allows one AI request per minute allows one Data Lab question per minute. If you see a message about your plan or a rate limit, wait a minute or choose a lighter model in Settings → AI Models.

FAQ

The answer says 0 or “no rows”. Why?
The area you asked about has no records yet. Load the sample data for that module (or add records) and ask again. With the Cloudflare source, an admin also needs to sync once.
It says I do not have access to a table.
That table belongs to an area your role cannot query, usually finance. Ask a workspace admin to give your role Query financial data.
Can I trust the numbers?
The numbers come from the query shown under the answer, not from the AI’s memory. Read that query to see exactly what was counted. Results are limited to 500 rows.