What a data source is
A data source is a table your company builds itself, for data that lives nowhere else in Superfood: store budgets, sales targets, freight rates, a supplier price file, a list of sites. You upload it from a spreadsheet or type it in, and from then on it works like any other data in Reports & Dashboards. Find it under Reports & Dashboards, then Data sources.
Company admins create and change data sources. Everyone in the company can see them and use them in reports.
Create one from a spreadsheet
Choose New data source, give it a name and choose an Excel (.xlsx) or CSV file. The first row of the file should hold the column names. You can also paste rows straight from a spreadsheet.
Each column of the file becomes a field. Superfood suggests a type for each one from the values it sees, and you can change it before you import:
- Text and Long text for names, codes and notes.
- Number, Currency and Percent for amounts, quantities and rates. Only these can be added up in a report.
- Date for a day.
- Single select for one of a short list, and Multiple select for several.
- Checkbox for a tick.
- Rating, Phone, Email and URL.
- Link to a record to tie each row to one of your products, stores and customers, suppliers, staff, assets, ingredients or product categories.
Set a column to Don't import to leave it out. Check the preview, then press the import button. If a column holds values its type cannot read (a word in a number column, say), Superfood tells you how many before you import. Those cells are left blank and the rest of the row still comes in; choose Text for the column if you would rather keep them as typed. To start without a file, choose Start with a blank table and add the fields yourself.
Link rows to your records
A link field matches each value in the file to one of your records by its name or its code (a product by name, SKU or barcode; a store by name or customer code; a supplier by business name or supplier code; staff by name, email or staff ID; an asset by name or asset number; an ingredient by name or item code). Matching is exact, not a guess: a value that matches nothing, or that two records share, is kept exactly as typed and shown with a dashed underline. A link field can also hold several records in one cell: separate them in the file with commas or semicolons.
Linked values open the record when you click them. To fix the ones that did not match, correct the spelling in the row or add the missing record, then open the ··· menu and choose Match links again.
Use it in a report
Every data source appears in the report builder under Your data sources. Ask the AI designer for what you want in plain words, for example "show budget against actual sales by store for this financial year, using Store budgets". Filters, the data table, dashboards, share links and scheduled emails all work the same as for any other report.
Because a link field points at a real record, a report can read that record's own details through it: a budget row linked to a store can be grouped by the store's retailer, branch or account manager without those columns being in your file.
Keep it up to date
Open the data source and choose Import spreadsheet to upload a newer file. Say where each column goes (Superfood remembers your choices for next time), then choose to keep the rows already there and add the file's rows, or to replace them with the file, which suits a file you export fresh each month. Nothing changes until the whole file has uploaded, so a failed upload never leaves half a table behind.
You can also press Add row, click any cell to change it in place, press the open button at the end of a row's first cell to see the whole row, or tick rows and delete them. On a phone, tap a row to open it. The table has the same search, filters, sorting and saved views as the other tables, and the ··· menu in the table exports it to Excel or PDF.
Add and change fields
A data source has the same field types as the Products table. Press the + at the end of the table header (or Add field on the Fields tab) and choose a type. Besides the types a file can fill, you can add:
- Formula, worked out for every row from its other fields, for example
{qty} * {price}. - Lookup, which shows a detail of a linked record, such as the retailer of the linked store.
- Attachment for photos and files.
- Button to open a web address, start an email, copy a value or open the row.
Press the pencil on a column header (or Customise on the Fields tab) to rename a field, change its options and colours, or remove it. Renaming a field never breaks a report. A field keeps its type once it is added: to change the type, add a new field and remove the old one. Removing a field hides its values for good.
Formulas and lookups appear in reports like any other field. To see a total, average or count for a column, press the sum sign at the foot of that column.
Archive, delete and history
Archive takes a data source off the list and out of the report builder while reports already built on it keep working, and it can be restored at any time. Delete removes it and its rows for good, and reports that read it stop loading it, so Superfood tells you which reports those are first. The History tab lists every import, field change and deletion with who did it and when.
Limits
A data source holds up to 100,000 rows and 60 fields. For larger data, summarise the file first (for example one row per store per month rather than one per sale).
