Each chart requires an LQL query to generate the values used on the chart. For a parametric chart, instead of referring to specific attributes, the query contains placeholder values, and you provide a set of available attributes.
On the chart tab of the Chart edit view, to provide the LQL query and select the metrics:
RETURN YearlyAverages AS SELECT
AVG(Product_MSRPDollars) AS AvgMSRP,
AVG(Product_Avg_National_Sales_PriceDollars) AS AvgNationalSalesPrice,
AVG(Unit_Sale_PriceDollars) AS AvgSalesPrice
GROUP
Note that for non-parametric charts, the metrics labels are defined using the AS clause in the LQL query. The labels must be NCName-compliant (no spaces or special characters).
If the query is not valid, then an error message is displayed.
If the query is valid, then a "success" message is displayed, as well as the metric values from the query.
The Metric selector section is displayed, listing all of the metrics from the current LQL query.
For example, your LQL query may include a metric to control the display order of the chart elements. However, you may not want the chart to display this value.
If you use the {METRIC} token, you must use it for both the field to be returned and the "AS" alias for that field. The {METRIC} token is an exception to the rule that the metric name must be NCName-compliant.
Cross tabs are grouped aggregations such as cross-tabulated totals over one or more attributes.
RETURN MyChart AS SELECT AVG({METRIC}) as {METRIC} GROUP BY {XAXIS}
These attributes become the available options in the drop-down lists used to control the chart display.
AttributeKey|Display NameFor example:
Trans_Country|Country