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

INFO.CALCULATIONGROUPS ( [<RestrictionName> [, [<RestrictionValue>] [, <RestrictionName> [, [<RestrictionValue>] [, … ] ] ] ] ] )
Parameter Attributes Description
RestrictionName Optional
Repeatable

Restriction name.

RestrictionValue Optional
Repeatable

Restriction value.

Return values

Table An entire table or a table with one or more columns.

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

2018-2026 © SQLBI. All rights are reserved. Information coming from Microsoft documentation is property of Microsoft Corp. » Contact us   » Privacy Policy & Cookies

Context Transition

This function performs a Context Transition if called in a Row Context. Click to read more.

Row Context

This expression is executed in a Row Context. Click to read more.

Passed by Expression

This parameter is passed by expression and can be evaluated multiple times in different evaluation contexts.

Iterator

Not recommended

The use of this function is not recommended. See Remarks and Related functions for alternatives.

Not recommended

The use of this parameter is not recommended.

Deprecated

This function is deprecated. Jump to the Alternatives section to see the function to use.

Volatile

A volatile function may return a different result every time you call it, even if you provide the same arguments. Click to read more.

Deprecated

This parameter is deprecated and its use is not recommended.

DirectQuery compatibility

Limitations are placed on DAX expressions allowed in measures and calculated columns.
The state below shows the DirectQuery compatibility of the DAX function.

Contribute

Want to improve the content of INFO.CALCULATIONGROUPS? Did you find any issue?
Please, report it us! All submissions will be evaluated for possible updates of the content.