Azure Data Explorer web UI results grid

In this guide, you'll learn how to work with query results in the Azure Data Explorer web UI using the results grid. With the results grid, you can customize and manipulate your results, and enhance the efficiency and effectiveness of your data analysis.

To learn how to run queries, see Quickstart: Query data in the Azure Data Explorer web UI.

Prerequisites

  • A Microsoft account or a Microsoft Entra user identity. An Azure subscription isn't required.
  • An Azure Data Explorer cluster and database. Use the publicly available help cluster or create a cluster and database.

Expand a cell

Expand a cell to open a detailed view of the cell content, which is especially helpful for viewing dynamic data or long strings. In the detailed view, dynamic data is presented like JSON. To expand a cell, follow these steps:

  1. Double-click a cell to open the detailed view.

  2. Select the icon on the top right of the result grid to switch reading pane modes. Choose between the following reading pane modes: Inline, Below, and Right.

    Screenshot showing the icon to change the reading pane mode in the Azure Data Explorer web UI query results.

Expand a row

Expand a row to open a detailed view of the row content. This detailed view shows the different columns and their content. To expand a row, follow these steps:

  1. On the left side of the row you want to expand, select the arrow icon >.

    Screenshot of an expanded row in the Azure Data Explorer web UI.

  2. In the detailed view, columns with dynamic data can be expanded or collapsed. Expanded columns are marked by a downward-pointing arrow, while collapsed columns are marked by a right-pointing arrow. You can toggle between expanding and collapsing the content by selecting the arrow beside the column key.

    Screenshot of columns with expanded or collapsed data.

Search in detailed view

You can perform free text search within the detailed view of a result. To learn how to do so, follow these steps:

  1. Run the following query.

    StormEvents
    | where InjuriesIndirect > 0
    
  2. Expand a row in the result grid to open the detailed view.

  3. Select the detailed view window.

  4. To initiate a free text search bar, press the keyboard shortcut "Ctrl + F".

  5. Input "injur". All instances of the searched term are highlighted.

    Screenshot of search result from dynamic field search.

Note

The search function isn't case sensitive by default.

Get the path to a dynamic field

Nested dynamic property-bag fields can become complex as you go deeper into their layers. In the results grid, the JPATH indicates the path through the dynamic property-bag object fields to arrive at the given field. To learn how to find a JPATH, follow these steps:

  1. Run the following query.

    StormEvents
    | take 10
    
  2. Select the first result in the StormSummary column, which should be the last column.

  3. Select different fields within the result and see how the JPATH at the top of the window changes. For example, the following screenshot shows the path to the Location field, which is nested under the Details field within the StormSummary column dynamic property-bag object.

    Screenshot of a nested JPATH.

  4. Select the icon to the right of the JPATH to copy it. Then, paste and use the JPATH as a filter or share it with others.

Add filter from dynamic field

To add a specific dynamic field as a filter to your query, do the following:

  1. Run the following query.

    StormEvents
    | take 10
    
  2. Select the first result in the StormSummary column, which should be the last column.

  3. Right-click on a field within a dynamic data and select Add as filter. For example, right-click on the Location field and add it as a filter.

    Screenshot of add as filter option from dynamic field.

  4. In the query editor, a query clause is added to your query based on the selected dynamic field.

    Screenshot of the query condition added from the dynamic field selection.

Add filter from query result

To add a filter operator to the query directly from the result grid, follow these steps:

  1. Run the following query.

    StormEvents
    | take 10
    
  2. Select the cells with content for which you want to create a query filter. To select multiple cells, click and drag your mouse over the cells you want to select, or hold down the "Ctrl" key while clicking on each cell. For example, select multiple cells from the State and EventType columns.

  3. Right-click to open the cell actions menu. Select Add selection as filters.

    Screenshot of a dropdown menu with the Add selection as filter option to query directly from the grid.

  4. In the query editor, a query clause is added to your query based on the selected cells.

    Screenshot of the conditions that were added as filters.

Group column by results

Within a result set, you can group the results by any column. After this grouping, you can perform further aggregations to investigate the data. To group and explore column results, follow these steps:

  1. Run the following query:

    StormEvents
    | where EventType == "Lake-Effect Snow"
    
  2. Mouse-over the State column, select the menu, and select Group by State.

    Screenshot of a table with query results grouped by state.

    The following screenshot shows the result after selecting Group by State.

    Screenshot of records grouped by state.

  3. In the grid, double-click on a record to expand and see records for that state. For example, expand the records for "INDIANA". This type of grouping can be helpful when doing exploratory analysis.

    Screenshot of a query results grid with California group expanded in the Azure Data Explorer web U I.

  4. Once you've grouped data by a column, you can use a value aggregation function to calculate statistics for each group. To do so, go to the column menu, choose Value Aggregation, and select the function type to use for that column.

    Screenshot of aggregate results when grouping column by results in the Azure Data Explorer web UI.

  5. To return the results grid to its original state, select the menu of the Group column. Then, select Reset columns.

Filter columns

To filter the results of a specific column, follow these steps:

  1. Select the menu for the column to filter.

  2. Select the filter icon.

  3. In the filter builder, select the desired operator.

  4. Type in the expression by which to filter the column. Results are filtered as you type.

    Note

    The filter isn't case sensitive.

  5. To create a multi-condition filter, select a boolean operator to add another condition.

  6. To remove the filter, delete the text from your first filter condition.

    GIF showing how to filter on a column in the Azure Data Explorer web U I.

View cell statistics

To quickly calculate the Average, Count, Min, Max, and Sum for several rows, select the relevant numerical cells. For example:

  1. Run the following query.

    StormEvents
    | where DamageCrops > 0 and DamageProperty > 0
    | project StartTime, State, EventType, DamageCrops, DamageProperty, Source
    
  2. Select a few of the numerical cells. To select multiple cells, click and drag your mouse over the cells you want to select, or hold down the "Ctrl" key while clicking on each cell. The Average, Count, Min, Max, and Sum are automatically calculated for these cells.

    Screenshot of a table with selected functions.

Make a pivot table

Pivot mode is similar to Excel’s pivot table. Pivot mode allows you to turn column values into columns. For example, you can pivot on the State column to make columns for "Florida", "Missouri", "Alabama", and so on. To create a pivot table, follow these steps:

  1. On the right side of the results grid, select Columns to see the table tool panel. At the top of the panel, select Pivot Mode.

    Screenshot showing how to access the pivot mode feature.

  2. Drag columns to the Row groups, Values, Column labels sections. For example, if you drag EventType to Row groups; DamageProperty to Values; and State to Column labels, then the result should look like the following pivot table.

    Screenshot of results in a pivot table.

Search in the results grid

To search for a specific expression within a result table, use the search capability. For example:

  1. Run the following query.

    StormEvents
    | where DamageProperty > 5000
    | take 1000
    
  2. In the top menu of the results grid, on the right side, select Search and type in "Wabash".

    Screenshot highlighting the search bar in the table.

  3. All mentions of your searched expression are now highlighted in the table. You can navigate between them by clicking Enter to go forward, Shift+Enter to go backward, or by using the up and down buttons beside the search box to move around.

    Screenshot of a table containing highlighted expressions from search results.

  4. To only display rows that contain your search query, turn on the Show only rows that fit search option located at the top of the search window.

Color results by value

To color the rows of results based on a column value, follow these steps:

  1. Run the following query.

    StormEvents
    | take 10
    
  2. Right-click on a value in the State column.

  3. Select Explore results, and then select Color by value.

    Screenshot of the option to color by value.

  4. The results are colored by the values in the State column.

    Screenshot of color by value.

Color results by error level

The results grid can color results based on error severity or verbosity level. To turn on this feature, alter your settings as described in Highlight error levels.

Error level color scheme in Light mode Error level color scheme in Dark mode
Screenshot of color legend in light mode. Screenshot of color legend in dark mode.

Hide empty columns

To hide or show empty columns, select the eye icon in the menu of the results grid.

Screenshot of eye icon to hide results grid in the Azure Data Explorer web UI.