StyleCode Property: as
as
Specifies the name of a data vector (table columns, chart series, summary entries).
Details
Although this can be specified with StyleCode syntax, the Envision script always provides values automatically, using, in decreasing order of priority:
table Orders = with
[| as Quantity |]
[| 10 |]
[| 25 |]
[| 45 |]
show table "Orders table" a1d3 with
// 1. The name introduced by an as keyword
Orders.Quantity as "Qty" // as: "Qty"
// 2. For a variable, the name without the table
Orders.Quantity // as: "Quantity"
SumQuantity = sum(Orders.Quantity)
show summary "Scalar summary" a4d5 with
// 1. The name introduced by an as keyword
Scalar.SumQuantity as "SumQty" // as: "SumQty"
// 2. For a variable, the name without the table
Scalar.SumQuantity // as: "SumQuantity"
// 3. The text of the expression
sum(Orders.Quantity) // as: "sum(Orders.Quantity)"