OpenBI Docs Buy

List.Product

All the numbers of a list multiplied together, nulls left out.

Group: List. Power Query M has it too: a query that uses it is written as in Power BI.

Syntax

List.Product(numbersList as list, optional precision as nullable number) as nullable number
ParameterTypeDescription
numbersListlistNumbers; nulls are skipped.
precisionnullable number
optional
Precision.Double (the default) multiplies as double-precision numbers; Precision.Decimal as decimals of 15 significant digits.

Returns

nullable number. The product; null when the list has no number.

Examples

Units on a pallet

12 cartons a layer, 4 layers, 6 units a carton.

List.Product({12, 4, 6})
288

List.Sum, Number.Power.

Last updated · OpenBI Studio 0.3.79