• abhijeet.send2me (11/2/2011)


    SELECT

    {[Date].[Calendar].[Calendar Quarter].&[2007]&[1],

    [Date].[Calendar].[Calendar Quarter].&[2007]&[2] } ON AXIS (0),

    [Reseller].[Reseller Type].[All Resellers] ON AXIS (1)

    FROM [Adventure Works]

    where [Measures].[Reseller Sales Amount]

    and

    SELECT

    {[Date].[Calendar].[Calendar Quarter].&[2007]&[1],

    [Date].[Calendar].[Calendar Quarter].&[2007]&[2] } ON AXIS (0),

    [Reseller].[Reseller Type].[All Resellers] ON AXIS (1)

    FROM [Adventure Works]

    give me same result. Can somebody explain why ?

    If you open the AdventureWorks cube in BIDS, and select the properties of the cube (in the Cube Structure tab), you'll notice that Reseller Sales Amount is chosen as the default measure of the cube. This means that this measure is taken if no measure is selected in the query.

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP