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

# Columns

> Column types, management, and grouping in Databar tables.

Columns define the structure of your table. Each column has a name and a type that determines how its values are stored and displayed. You can add columns manually, or they are created automatically when you attach an enrichment.

## Adding columns

Click the **+** button at the end of the column header row to add a new column. Give it a name and select a type.

Columns created by enrichments are added automatically and named based on the data field they return.

## Managing columns

Click any column header to open the column menu. From here you can:

* **Rename** the column
* **Delete** the column
* **Change the column type**
* **Sort** the table by this column (ascending or descending)
* **Filter** by this column's values
* **Hide** the column (use the toolbar to show hidden columns again)
* **Pin** the column to the left or right side of the table so it stays visible while scrolling horizontally
* **Remove duplicates** based on this column's values (see [Deduplication](/product-guide/deduplication))
* **Download images** as a zip file (Image columns only)

You can also **resize** columns by dragging the edge of any column header, and **reorder** columns by dragging the column header to a new position.

## Column types

Each column has a type that controls how values are stored, validated, and displayed.

<AccordionGroup>
  <Accordion title="Text" icon="font">
    Free-form strings. This is the default type for new columns and most enrichment results. Text columns can hold any value including names, emails, descriptions, and identifiers.
  </Accordion>

  <Accordion title="Number" icon="hashtag">
    Integers and decimal values. Numbers are right-aligned in cells and can be sorted numerically. Use this for quantities, scores, employee counts, and similar numeric data.
  </Accordion>

  <Accordion title="Currency" icon="dollar-sign">
    Same as Number but formatted with a currency symbol. Use this for revenue, pricing, funding amounts, and other monetary values. The display includes appropriate formatting while the underlying value remains a number.
  </Accordion>

  <Accordion title="Boolean/Checkbox" icon="square-check">
    True/false values displayed as checkboxes. Click the checkbox to toggle the value. Useful for tracking completion, verification status, or any binary state.
  </Accordion>

  <Accordion title="Date" icon="calendar">
    Date values with a configurable display format. Databar automatically converts common date formats, including UNIX timestamps, into human-readable dates.
  </Accordion>

  <Accordion title="Datetime" icon="clock">
    A date paired with a time value. Use this when you need to track both the day and the specific time, such as event timestamps, log entries, or scheduled actions.
  </Accordion>

  <Accordion title="URL" icon="link">
    Clickable links. Values are rendered as hyperlinks that open in a new tab when clicked. Useful for website URLs, LinkedIn profiles, social links, and any web addresses.
  </Accordion>

  <Accordion title="Image" icon="image">
    Inline image previews rendered from URLs. When a cell contains an image URL, the table displays a thumbnail preview directly in the cell. Click to view the full image.
  </Accordion>

  <Accordion title="JSON" icon="brackets-curly">
    Nested objects and arrays displayed with an expandable viewer. Many API providers return structured JSON data. Click a JSON cell to open the expanded viewer for easier navigation of nested structures.

    You can use the **JSON Expander** to flatten specific fields from a JSON column into their own top-level columns. See [JSON Expander](/product-guide/json-expander) for details.
  </Accordion>

  <Accordion title="Select" icon="circle-dot">
    A single-value dropdown. Define a set of options and pick one per cell. Useful for categorizing rows with statuses, labels, or stages.
  </Accordion>

  <Accordion title="Multiple choice" icon="list-check">
    A multi-value dropdown. Select one or more options per cell. Useful for tagging rows with multiple labels, categories, or attributes.
  </Accordion>
</AccordionGroup>

### Changing a column's type

You can change an existing column's type by clicking the column header and selecting a new type. Databar will attempt to coerce existing values to the new type. For example, converting a Text column to Number will parse numeric strings into numbers.

<Warning>
  If your column contains values that cannot be converted to the new type, those values may be lost. For example, changing a Text column with non-numeric values to Number will clear any cells that don't contain valid numbers.
</Warning>

## Column grouping

When an enrichment returns multiple fields, those columns are grouped together under a collapsible header. This keeps your table readable even when dozens of data points are attached to each row.

<Frame>
  <video autoPlay muted loop playsInline controls>
    <source src="https://mintcdn.com/databar/1_8SYGOvkuHprryI/images/product-guide/column-groups-collapsing.mp4?fit=max&auto=format&n=1_8SYGOvkuHprryI&q=85&s=a5ddbf9c04d6d13c23da7cae1eebcf7a" type="video/mp4" data-path="images/product-guide/column-groups-collapsing.mp4" />
  </video>
</Frame>

Grouped columns can be collapsed or expanded by clicking the group header. This is especially useful when working with enrichments that return many fields (e.g., company data with name, description, employee count, funding, and more).

### User-created vs. enrichment columns

* **User-created columns** are the columns you add manually. They appear as standalone columns in your table.
* **Enrichment columns** are created automatically when you attach an enrichment. They are grouped under the enrichment name and display cell-level [enrichment statuses](/product-guide/tables-overview#cell-level-enrichment-statuses) (success, no data, error, pending).

Enrichment columns have additional options in their column menu, including a **Settings** shortcut to open the enrichment sidebar and an **Actions** submenu for running the enrichment on all rows, empty rows only, rows with errors, or filtered rows.

## Related

<CardGroup cols={2}>
  <Card title="Tables overview" icon="table" href="/product-guide/tables-overview">
    Learn how tables work in Databar
  </Card>

  <Card title="Deduplication" icon="clone" href="/product-guide/deduplication">
    Remove duplicate rows based on column values
  </Card>

  <Card title="JSON Expander" icon="brackets-curly" href="/product-guide/json-expander">
    Flatten JSON fields into their own columns
  </Card>

  <Card title="Enrichments" icon="wand-magic-sparkles" href="/product-guide/enrichments">
    Attach data providers to your columns
  </Card>
</CardGroup>
