INFO.CALCULATIONGROUPS DAX Function (Information)
Returns a list of all calculation groups in the current model with columns matching the schema rowset for calculation group objects.
Syntax
| Parameter | Attributes | Description |
|---|---|---|
| RestrictionName | Optional Repeatable |
Restriction name. |
| RestrictionValue | Optional Repeatable |
Restriction value. |
Return values
A table with one row for each calculation group in the model. The columns match the TMSCHEMA_CALCULATION_GROUPS DMV.
| Field | Type |
|---|---|
| ID | Integer |
| TableID | Integer |
| Description | String |
| ModifiedTime | DateTime |
| Precedence | Integer |
Remarks
Corresponds to the TMSCHEMA_CALCULATION_GROUPS data management view (DMV).
As all the INFO functions, it cannot be used in calculated tables and calculated columns.
Use this function in a DAX query. Without arguments, the function returns all the rows. To filter the rows, pass pairs of arguments: the name of a restriction and its value, both as text. If you use more than one pair, a row must match all of them. The number of arguments must be even, and an unknown restriction name returns an error. The restriction name is not case sensitive. The restriction name is the name of a column in the result. For example, INFO.CALCULATIONGROUPS ( “Precedence”, “1” ) returns the calculation group with precedence 1.
The function returns one row for each calculation group. The result does not have the name of the calculation group: the name is the name of its table in INFO.TABLES, and TableID is the ID of that table. Precedence is a number that sets the order of the calculation groups when more than one calculation group applies to the same measure. To get the calculation items of a group, join the result to INFO.CALCULATIONITEMS, where CalculationGroupID is the ID of the calculation group, as in the example.
According to Microsoft documentation, only users with write permission on the semantic model can run this function, and it does not work in a live connection to a model in Power BI Desktop.
Examples
-- INFO.CALCULATIONGROUPS returns one row for each calculation group.
-- The name of the calculation group is the name of its table in INFO.TABLES.
-- Items is the number of calculation items in INFO.CALCULATIONITEMS.
EVALUATE
VAR TableList =
SELECTCOLUMNS ( INFO.TABLES (), "TableID", [ID], "Calculation group", [Name] )
VAR ItemList =
GROUPBY (
SELECTCOLUMNS ( INFO.CALCULATIONITEMS (), "ID", [CalculationGroupID] ),
[ID],
"Items", COUNTX ( CURRENTGROUP (), 1 )
)
VAR Result =
SELECTCOLUMNS (
NATURALINNERJOIN (
NATURALINNERJOIN ( INFO.CALCULATIONGROUPS (), TableList ),
ItemList
),
"Calculation group", [Calculation group],
"Precedence", [Precedence],
"Items", [Items]
)
RETURN
Result
ORDER BY [Precedence]
| Calculation group | Precedence | Items |
|---|---|---|
| Time calc | 0 | 4 |
| Scale | 1 | 3 |
Last update: Nov 30, 2026 » Contribute » Show contributors
Contributors: Alberto Ferrari, Marco Russo
Microsoft documentation: https://learn.microsoft.com/en-us/dax/info-calculationgroups-function-dax