CURRENTGROUP
Applies to: Calculated column Calculated table Measure Visual calculation
Note
This function is discouraged for use in visual calculations as it likely returns meaningless results.
Returns a set of rows from the table argument of a GROUPBY expression that belong to the current row of the GROUPBY result.
Syntax
CURRENTGROUP ( )
Parameters
None
Return value
The rows in the table argument of the GROUPBY function corresponding to one group of values of the groupBy_columnName arguments.
Remarks
This function can only be used within a GROUPBY expression.
This function takes no arguments and is only supported as the first argument to one of the following aggregation functions: AVERAGEX, COUNTAX, COUNTX, GEOMEANX, MAXX, MINX, PRODUCTX, STDEVX.S, STDEVX.P, SUMX, VARX.S, VARX.P.
Example
See GROUPBY.