Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

MDX SubSelect Query

$
0
0

Hi,is there a way in which I can return the children of a dimension if a value is true or if not limit what's returned?

Sample MDX below:

SELECT NON EMPTY [Measures].[Measures] ON COLUMNS,
NON EMPTY [Dimensions].[Dimensions] ON ROWS
FROM
(
    SELECT    
        CASE
        WHEN [Dimensions].[Value].CurrentMember IS [Dimensions].[Value].&[Apple]
        THEN [Calendar].[Fin Month].Children
        ELSE [Calendar].[Fin Year].&[2014]
        END
    ON COLUMNS
    FROM
    [Cube]
)

What I trying to return is all months where the dimension value is Apple but if not then only return me results in the Fin Year.

Many thanks.


Viewing all articles
Browse latest Browse all 14337

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>