Saltar al contenido

Lección 4 · Workbooks and Tables

Working with Tables

Work with Sigma tables: choose columns, check data types, sort, filter, use summaries, hide and format columns, and avoid common reading mistakes.

The table is the element you will use most. It shows rows and columns from a source, and most other tasks start here: cleaning, calculating, grouping and feeding charts. This lesson covers the everyday moves and the traps behind them.

Create a table

When you add a table, you choose a source: a table in your data platform, a data model element, an uploaded CSV, a SQL query, or another element. Pick the most trusted source available. A modeled table with agreed names usually beats a raw one.

Do not bring every column just because it exists. A table with ten meaningful columns is easier to read than one with two hundred, and removing unneeded columns can also help performance.

Know your data types

Each column has a Sigma data type, such as text, number, date or logical (true or false). The type affects which formulas and filter options you can use. Check types early:

Looks like Might be stored as Risk
2026-11-03 Text Date filters and date math do not work as expected
00417 Number Leading zeros disappear
1,250 Text You cannot add it up
Yes / No Text "yes", "Yes " and "Y" count as different values

Fix types with conversion functions such as Date, Number and Text, or better, fix them at the source.

Sort

Sort from a column's menu. For several sort levels, you can set a custom sort order. A sort changes what you see, but it can also change the meaning of order-dependent calculations such as running totals. You will meet those in window functions.

Filter

Sigma's data element filters come in several types, according to its documentation:

Filter type Typical use
List Include or exclude chosen values
Top N Keep the top or bottom ranked rows
Number range Keep values between limits
Date range Fixed or relative periods
Text match Contains, starts with, regular expressions
Hierarchy Filter a hierarchy (a beta feature as of December 2026)

A column can have only one data element filter. If you need a second condition on the same column, combine the filter with a control or another filtering option. Filters affect downstream child elements, and aggregates are calculated from the filtered data. If you filter out cheap items, the average price goes up, because the cheap rows are gone.

SQL Stand-in: filters change every aggregate

Press Run (or Ctrl + Enter) to see the result here.

Summaries

A table can show summaries: single values calculated over the whole table, shown in the summary bar. You can add a row count, an aggregate of a column, or your own formula. You can also refer to a summary by name in column formulas, which is handy for shares of a total.

TEXT
Summary "Total revenue":  Sum([Revenue])
Column "Share of total":  [Revenue] / [Total revenue]

Sigma chooses a default aggregate based on the data type. For numbers it is often Sum, which is wrong for IDs, unit prices or percentages. For an ID, a count or distinct count is usually what you mean. Read the summary label before you trust it.

Hide, reorder and format

  • Hide helper columns instead of deleting them. Other formulas may use them.
  • Reorder columns so that the identifying column comes first.
  • Rename columns into plain words. "cust_id" becomes "Customer ID".
  • Format numbers, currencies, percentages and dates. Formatting changes the display, not the stored value.
JS Stand-in: format for display, keep the value exact

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Check the grain

The grain is what one row means: one order, one order line, or one customer per day. Write it down. Many wrong totals come from misunderstanding the grain. If a row is an order line, counting rows does not count orders; you need a distinct count of order IDs.

TEXT
order_id  line  product  qty
1001      1     Lamp     2
1001      2     Bulb     6
1002      1     Desk     1

Rows: 3    Orders: 2    Units: 9

A cleanup checklist

  1. Confirm the source and its grain.
  2. Check data types and missing values.
  3. Rename and reorder columns.
  4. Compare the row count with a trusted number.
  5. Add only the filters you can explain.
  6. Hide helper columns and format numbers.

Practice: spot the problem

Take the three order lines above and answer these questions on paper before you open any tool. How many orders are there? What is the average number of units per order? What is the average number of units per line? The first is 2. The second is 9 divided by 2, or 4.5. The third is 9 divided by 3, or 3. All three are correct answers to different questions. When a stakeholder asks for "the average", ask what one row in their mental picture is. Then build the summary that matches it, and label it with the same words.

Common mistake: trusting a total after adding a filter weeks ago and forgetting it. Look at the active filters before you report a number, and name filters or controls so readers can see them.

Share the table with care

Before others use your table, remove test filters, check the column names and add a short note that states the grain and the source. If you changed names or types along the way, say so in that note. Then open the table as a reader would and check that the first columns identify each row, that numbers carry sensible formats and that no helper column is still visible by accident.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. A table has one row per order line. How do you count orders?

    Several rows can belong to one order, so count each order ID once.
  2. 2. What happens to an average when you filter out low values?

    Aggregates use the filtered data, so removing low values can raise the average.
  3. 3. Why hide a helper column instead of deleting it?

    Formulas that reference the column keep working when it is only hidden.
  4. 4. Which type is the best choice for a code such as 00417?

    Codes are labels, so text keeps the leading zeros.

Summary

  • Choose trusted sources and only the columns you need.
  • Check data types early; fix them at the source when possible.
  • Each column takes one data element filter, and aggregates use filtered rows.
  • Summaries give table-level values; check their aggregate.
  • Know the grain before you count or add anything.

Next: Formula Basics

Tu progreso se guarda en este navegador. No necesitas una cuenta.