Редагувати

Поділитися через


PRODUCT

Applies to: Calculated column Calculated table Measure Visual calculation

Returns the product of the numbers in a column.

Syntax

PRODUCT(<column>)  

Parameters

Term Definition
column The column that contains the numbers for which the product is to be computed.

Return value

A decimal number.

Remarks

  • To return the product of an expression evaluated for each row in a table, use PRODUCTX function.

  • Only the numbers in the column are counted. Blanks, logical values, and text are ignored. For example,

    PRODUCT( Table[Column] ) is equivalent to PRODUCTX( Table, Table[Column] ).

  • This function is not supported for use in DirectQuery mode when used in calculated columns or row-level security (RLS) rules.

Example

The following computes the product of the AdjustedRates column in an Annuity table:

= PRODUCT( Annuity[AdjustedRates] )  

PRODUCTX