Page 17 - DAX-Formula-Reference-Guide-Enterprise-DNA_Neat
P. 17

DAX Formulas Reference Guide  |  Date and Time Functions (DAX)



                Return Value:
                A scalar value that represents the expression evaluated at the first date of the month in
                the current context.


                =OPENINGBALANCEMONTH(SUMX(ProductInventory,ProductInventory[UnitCost]*ProductI
                nventory[UnitsBalance]),DateTime[DateKey])


                OPENINGBALANCEQUARTER Function (DAX)
                Evaluates the expression at the first date of the quarter, in the current context.


                Syntax: OPENINGBALANCEQUARTER(<expression>,<dates>[,filter>])


                Parameter                    Definition
                expression                   An expression that returns a scalar value.

                dates                        A column that contains dates.

                filter                       An expression that specifies a filter to apply to the current context.
                                             (Optional)



                Return Value:
                A scalar value that represents the expression evaluated at the first date of the quarter in
                the current context.


                =OPENINGBALANCEQUARTER(SUMX(ProductInventory,ProductInventory[UnitCost]*Produc
                tInventory[UnitsBalance]),DateTime[DateKey])

                OPENINGBALANCEYEAR Function (DAX)
                Evaluates the expression at the first date of the year in the current context.


                Syntax: OPENBALANCEYEAR(<expression>,<dates>[,<filter>][,<year_end_date>])


                Parameter                    Definition

                expression                   An expression that returns a scalar value.

                dates                        A column that contains dates.
                filter                       An expression that specifies a filter to apply to the current context.
                                             (Optional)

                year_end_date                A literal string with a date that defines the year-end date. The default is
                                             December 31st. (Optional)















                +64 21 164 5508  |  info@enterprisedna.co  17
   12   13   14   15   16   17   18   19   20   21   22