summary

summary, tile type

The summary tile is intended to gather a list of scalar values, typically KPIs.

myDate = date(2022, 2, 17)
onHand = 123
onOrder = 42
unitPrice = 25

show summary "Key figures" a1b2 with
  "Contoso A-001" as "Product Name"
  myDate
  onHand
  onOrder
  onHand + onOrder as "Total units" 
  (onHand + onOrder) * unitPrice as "Total value" {unit: "$"}

The above code outputs the following table:

Product Name myDate
Contoso A-001 Feb 17, 2022
onHand onOrder
123 42
Total units Total value
165 $4 125

Each value can be associated with a label (as "Product Name") and a unit ({unit: "$"}). For a unit, you can specify any value, e.g., {unit: "foo"} is a valid unit.

User Contributed Notes
0 notes + add a note