Export (0) Print
Expand All
Expand Minimize

Qtd (MDX)

Returns a set of sibling members from the same level as a given member, starting with the first sibling and ending with the given member, as constrained by the Quarter level in the Time dimension.

Qtd( [ Member_Expression ] )


A valid Multidimensional Expressions (MDX) expression that returns a member.

If a member expressionis not specified, the default is the current member of the dimension of type Time (Time.CurrentMember).

The Qtd function is a shortcut function for the PeriodsToDate (MDX) function whose level expression argument is set to Quarter. That is, Qtd(Member_Expression) is functionally equivalent to PeriodsToDate(Quarter, Member_Expression).


The following example returns the sum of the Measures.[Order Quantity] member, aggregated over the first two months of the third quarter of calendar year 2003 that are contained in the Date dimension, from the Adventure Works cube.

WITH MEMBER [Date].[Calendar].[First2MonthsSecondSemester2003] AS
        QTD([Date].[Calendar].[Month].[August 2003])
    [Date].[Calendar].[First2MonthsSecondSemester2003] ON COLUMNS,
    [Product].[Category].Children ON ROWS
    [Adventure Works]
    [Measures].[Order Quantity]
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft