> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usedatabrain.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Table and Horizontal Stack Table

> Set up Table and Horizontal Stack Table charts.

Tables show data in rows and columns. **Horizontal Stack Table** adds horizontal bars for selected measure columns.

## Data Requirements

* **Table**: One or more dimensions and measures.
* **Horizontal Stack Table**: Dimensions + measures; choose which columns get stack bars.

## How to Set Up Table

1. Create a metric with dimensions and measures.
2. Choose **Table** from the chart type list.
3. Under **Required Axis** → **Measure**: Select the columns to display (dimensions and measures).
4. In **Appearance** → **Table settings**: Configure alignment, formatting, pagination, search, sorting, conditional formatting.

## How to Set Up Horizontal Stack Table

1. Create a metric with dimensions and measures.
2. Choose **Horizontal Stack Table**.
3. Under **Required Axis**:
   * **Vertical Axis**: Dimensions for rows.
   * **Measure**: Measures for columns and bars.
4. In chart configuration, set **Stack columns** — which measure columns show horizontal bars.
5. In **Appearance**: Bar width, radius, label position, colors.

## Table Settings

In **Appearance** → **Table settings**:

* Header alignment, content alignment, font weight
* Number formatting, prefix, suffix
* Conditional formatting (colors by value)
* Pagination, search, sorting
* Hide columns, text wrap

## Text Wrap and Line Breaks

To wrap long cell content or preserve newlines that exist in your data, open the **Text Wrap** section of the table settings:

* **Enable Header Text Wrap** — wrap long column headers.
* **Enable Content Text Wrap** — wrap cell content instead of truncating it.
* **Text Wrap Columns** — choose which columns wrap (leave empty for all).
* **Allow Line Breaks** — render newline characters in your data as actual line breaks. Without this, multi-line values display as one line.

For multi-line cell content, turn on both **Enable Content Text Wrap** and **Allow Line Breaks**.

## Conditional Formatting with Number Formatters

By default, conditional-formatting rules compare against the **raw** column value. If you apply a number formatter (for example a `%` formatter), your rule thresholds may stop matching — a rule of `> 50` matches the raw value `0.5` differently than the formatted `50%`.

When a number formatter targets a column, a **Compare Value with** control appears in the conditional-formatting settings with two options:

* **Raw Data** (default) — rules compare against the unformatted value (`0.5`).
* **Formatted Data** — rules compare against the value after formatting (`50%`).

Pick the mode that matches how you wrote your thresholds. If your conditional formatting "broke" after adding a formatter, switching this control is usually the fix.
