|
This page explains how to:
Adding one or more fields to a query is the first step of building a query. Then, query fields can optionally be filtered, pivoted, or sorted.
To add a field to a query, do the following:
In the Field Selection, click the name of a field once to add it to the query. Clicking the field a second time removes the field from the query.
The added field appears in two places:
To remove a field from a query, do one of the following:
See also: |
To add a calculated field to a query, do the following:
For Format, select the desired format option: Default formatting, ID, Decimals, U.S. Dollars, British Pounds, Euros, Percent, or Custom. For more information, see Calculated Field Format Options.
Pivoting a dimension can help make a data table with multiple dimensions easier to read, or provide a new perspective from which to look at results. When a dimension in a query is pivoted, each value in the dimension becomes a column in the resulting data table.
Only dimensions, and not measures, can be pivoted.
To pivot a dimension, do one of the following:
To unpivot a dimension, do one of the following:
Filters provide a way to select a particular subset of data. A query can have multiple filters, and any field can be a filter, even if the field is not part of the query results.
To add a filter to a query, do the following:
To remove a filter from a query, do one of the following:
By default, the results of a query are sorted according to the following hierarchy:
However, it is possible to customize how a query is sorted.
A sorted field contains an arrow in the column header that indicates the sorting direction: pointed up for ascending order and pointed down for descending order.
To sort by a single field, do one of the following:
When sorting by multiple fields, the sorted fields contain a number in the column header to indicate the sorting order.
To sort by multiple fields, do the following in the Data section:
After a query is built, run the query to retrieve the requested information. Whenever a query is modified, like a new field is added or a filter is removed, re-run the query to refresh the retrieved results.
To run or re-run a query, click the Run button in the upper right corner of the screen.
By default, query results are returned as a data table, but a query's results can be visualized in a variety of ways.
To create a visualization, do the following:
The results of a query can be shared immediately, without saving the query as a report or to a dashboard first.
To share a query, do the following:
When saving a query, there are three options:
To save a query as a report, do the following:
To save a query as a new dashboard, do the following:
To save a query to an existing dashboard, do the following: