StyleCode Property: as

as

Specifies the name of a data vector (table columns, chart series, summary entries).

Applies to Type Default
assert > entry
barchart > haxis
barchart > series
chart > haxis
chart > block > plotxy > haxis
chart > block > plotxy > series
chart > block > plot > haxis
chart > block > plot > series
chart > block > scatter > haxis
chart > block > scatter > series
histogram > haxis
histogram > series
linechart > haxis
linechart > series
plot > series
plot > haxis
scatter > series
scatter > haxis
slicepicker > entry
slicetree > entry
summary > entry
table > column
tabs > tab
Text ""

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)"
User Contributed Notes
0 notes + add a note