Skip to content

Explore

Data Explore lets you interactively analyze any query result or table data. It automatically classifies columns as dimensions or measures, provides filtering and aggregation controls, and renders charts in real time. All processing happens client-side, so there are no additional database queries during exploration (except when drilling into related tables).

There are two ways to open the Explore panel:

  • From the data grid: Click the telescope icon in the grid toolbar on any query result or table data.
  • From the DB Explorer: Right-click a table and select Explore. You’ll be prompted for a row limit, then DBCode queries the table and opens the panel.

Right-click context menu on a table showing the Explore option

The Explore panel is organized into several areas:

  • Breadcrumb bar: At the top, shows the current drill path with the table name and active filters. Each segment is clickable for back-navigation. The AI assist toggle is also here.
  • Filter bar: Below the breadcrumbs, displays all active filters as removable chips with undo/redo buttons.
  • Left sidebar: Columns grouped into Dimensions, Measures, and Relationships. Click a column to select it. The sidebar width is adjustable by dragging the resize handle.
  • Center area: Shows an overview of all columns initially. When a column is selected, shows value frequencies (for dimensions) or statistics and histograms (for measures). When a measure is added, charts appear above the detail view.
  • Row preview: A collapsible panel at the bottom of the center area showing filtered rows in a data grid.
  • Status bar: Bottom bar showing dimension, measure, relationship, and filter counts.

Full Explore panel layout showing sidebar with dimensions, measures, and relationships, center area with column overview cards, and status bar

When no column is selected, the overview page shows a card grid where each column is represented as a card containing:

  • Column name with a type icon
  • A mini sparkline histogram showing the value distribution
  • Distinct count and null percentage
  • A quick stat line (min/avg/max for measures, top value for dimensions)

The overview also highlights data quality alerts (columns with high null rates, constant values, or all-unique values) and shows correlations between measures with r-values.

Click any card to select that column and see its detail view.

DBCode automatically classifies columns into two categories:

  • Dimensions (categorical): Strings, booleans, dates, enums, and numeric columns detected as categorical via name heuristics (_id, _code, _type suffixes), FK metadata, or low cardinality.
  • Measures (numeric): Integers, floats, decimals, and money types suitable for aggregation. Detected IDs and foreign keys are excluded.

Click any value in the frequency list to add it as a filter. Multiple values can be selected. Active filters appear as removable chips in the filter bar at the top.

  • Null values appear as “(null)” and are filterable like any other value
  • A search box lets you filter the displayed frequency bars by substring (visual only, does not affect data filters)

Dimension filter view showing ship_mode values with Standard and Express selected as filters, with filter chips in the bar above

Date columns are automatically bucketed by granularity. Use the granularity picker to choose from Year, Quarter, Month, Week, Day, or a custom From/To date range. Selecting a granularity re-buckets the values and clears any previous date filters.

Date dimension with Month granularity selected, showing bucketed values with frequency bars

Select a measure to see a range slider with a histogram backdrop. Drag the handles or edit the min/max inputs directly to filter to a numeric range.

All active filters are shown as chips in a persistent bar below the breadcrumbs. Each chip is removable. Undo/redo buttons (up to 50 states) let you step back through filter changes.

Select one or more measures and choose an aggregation function for each:

FunctionDescription
SumTotal of all values
AverageMean value
MinMinimum value
MaxMaximum value
CountNumber of non-null values
DistinctNumber of unique values

Toggle between Total (single aggregate) and By value (grouped by the selected dimension) using the toolbar button.

The chart toolbar offers the following visualization types:

TypeBest For
BarComparing categories
Horizontal BarLong category labels
LineTrends over time
AreaCumulative trends
PieProportions of a whole
DonutProportions with a center label
ScatterRelationships between two measures

Bar chart showing revenue sum grouped by category with chart toolbar visible

Line chart showing revenue sum over time grouped by month

The chart toolbar provides controls for customizing the visualization:

  • Chart / Pivot: Switch between chart view and pivot table view
  • Stacked: Stack series on top of each other (bar, area)
  • Combined / Split: Overlay multiple measures on one chart or render them separately (requires multiple measures)
  • Dual Axis: Use separate Y-axes for different measures (requires combined mode)
  • Trend line: Select from a dropdown: None, Linear regression, MA-3, MA-5, or MA-7
  • Split by: Add a second dimension for sub-grouping (see below)
  • Total: Toggle between total aggregate and grouped-by-dimension view
  • Labels: Show data values on chart elements
  • Cumulative: Transform values into running totals
  • Other: When Top N is active, aggregate remaining values into an “Other” entry

Click the palette icon in the chart toolbar to choose from six color themes:

ThemeDescription
ConnectionShades derived from the connection’s highlight color (default)
EditorShades derived from the editor’s primary accent color
VividBold, saturated, high-contrast palette
OceanBlues, teals, and cyans
WarmAmbers, reds, and corals
NeonElectric, bright colors

The selected theme is remembered across sessions.

Bar chart with the Vivid color theme applied showing colorful multi-colored bars

Use the Split by dropdown to add a second dimension for sub-grouping. For example, group sales by month and split by region. The second dimension is limited to the top N values to keep charts readable. If the second dimension is a date column, a granularity picker appears to control date bucketing.

When a second dimension is active, you can switch to a Pivot Table view that renders a cross-tab grid with row and column totals.

Grouped bar chart showing revenue by category, split by region with five colored series

When a measure field is selected, the detail view shows a summary grid with:

  • Sum, Average, Median, Standard Deviation
  • Min, Max, p25, p75
  • Count, Distinct Count, Null Count, Variance

A distribution histogram (~15-20 bins) is also displayed.

Statistics panel showing summary grid with sum, average, median, standard deviation and a distribution histogram for revenue

Click the + button in the Measures section of the sidebar to create a calculated measure. Enter an expression using column names (e.g., price * quantity). Autocomplete suggestions are provided as you type.

Calculated measure dialog with expression revenue minus cost entered

The Rows section at the bottom of the center area can be expanded to show the current filtered rows in a data grid. When exploring a table (not a raw query), the row preview includes a SQL panel that shows the generated SQL for the current exploration state, with options to open the SQL in the editor or execute it directly.

Row preview showing filtered data in a grid with columns for id, region, category, product, and revenue

Clicking a chart data point toggles a filter for that value, allowing you to drill into a specific category and see how it affects the rest of the exploration.

  • Sort: Order values by count (ascending/descending), alphabetically (A-Z, Z-A), or chronologically for date dimensions
  • Top N: Limit the display to the top 5, 10, 20, or 50 values. Remaining values are collapsed into an “Other” entry when the Other toggle is active.

When foreign key relationships are detected (or inferred), they appear in the sidebar under Relationships. Click a relationship to drill into the related table, carrying the current filter context.

  • An Apply filters to relationships checkbox controls whether the drill uses only filtered rows or all rows
  • The breadcrumb bar tracks the full drill path, and each segment is clickable for back-navigation
  • Column definitions and relationship metadata are preserved at each level

Explore panel after drilling from orders into order_items, showing breadcrumb navigation path, correlations, and measure overview cards

Click the sparkle icon in the breadcrumb bar to open the AI assist panel. DBCode sends a compact summary of your data (column types, cardinality, top values, null rates, correlations) to your configured AI provider and returns:

  • Insights: Observations about your data
  • Suggested actions: Clickable buttons that apply exploration actions (select fields, add filters, set measures, drill into relationships)

No raw data rows are sent to the AI provider. Summary data (column types, value distributions, null rates, some distinct values) is sent. You can view exactly what is sent by clicking the Summary Data link in the AI assist panel.

AI Insights panel showing data observations and suggested exploration actions alongside the column overview