PRODUCTX Function (DAX)

 
System_CAPS_ICON_note.jpg Note


This function is included in SQL Server 2016 Analysis Services (SSAS), Microsoft Power Pivot in Excel 2016 Preview editions, and Microsoft Power BI Designer Preview only. Information provided here is subject to change.

Returns the product of an expression evaluated for each row in a table.

To return the product of the numbers in a column, use PRODUCT Function (DAX).

PRODUCTX(<table>, <expression>)  

Parameters

TermDefinition
tableThe table containing the rows for which the expression will be evaluated.
expressionThe expression to be evaluated for each row of the table.

A decimal number.

The PRODUCTX function takes as its first argument a table, or an expression that returns a table. The second argument is a column that contains the numbers for which you want to compute the product, or an expression that evaluates to a column.

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

The following computes the future value of an investment:

= [PresentValue] * PRODUCTX( AnnuityPeriods, 1+[FixedInterestRate] )  

PRODUCT Function (DAX)

Community Additions

ADD
Show: