← All features

Canvas nodes

Math

Calculate a column from an expression using input values.

How it works

Write an expression that uses the incoming column values and choose where to put the result. The expression is evaluated for each row.

Click Math on Canvas, then change Expression in the inspector. LineTotal now shows Quantity multiplied by UnitPrice.

Simple example

Connect an order table with Quantity and UnitPrice columns. Enter [Quantity] * [UnitPrice] and name the result LineTotal to calculate the amount on each line.

Math selected in n0is Canvas in the simple example.
n0is Canvas · Sample dataView full size

Input

3 rows
ProductQuantityUnitPrice
Mug312
Bowl218
Tray124

Node output

3 rows
ProductQuantityUnitPriceLineTotal
Mug31236
Bowl21836
Tray12424

Complex workflow

Calculate per-line margin with [Quantity] * ([UnitPrice] - [UnitCost]) and keep the input columns. Filter for positive LineMargin, then sum it by Product to see which products contributed positive margin.

Math selected in n0is Canvas in the complex workflow.
n0is Canvas · Sample dataView full size

Input

4 rows
ProductQuantityUnitPriceUnitCost
Mug3128
Mug2129
Bowl21819
Tray12412

Node output

4 rows
ProductQuantityUnitPriceUnitCostLineMargin
Mug312812
Mug21296
Bowl21819-2
Tray1241212

Workflow result

2 rows
Productsum_LineMargin
Mug18
Tray12