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

Query a Named Set in SSAS

$
0
0

Hi everybody,

I have a named set which gather several measures.
I would like to query this Named to get only the result for one measure.
For instance:
Named Set [Test]
is defined like this:
{
 [Measures].[Measure1],
 [Measures].[Measure2],
 [Measures].[Measure3]
}

I usually query my Named set with a query like:

SELECT
{[DIM1].[DIM1BDC].ALLMEMBERS *
{[TIME].[YEAR].CHILDREN} } ON COLUMNS,
{[Test]} ON ROWS
FROM    [CUBE1]
WHERE {[DIM1].[DIM1].&[209490]

I would like to get something like:

SELECT
{[DIM1].[DIM1BDC].ALLMEMBERS *
{[TIME].[YEAR].CHILDREN} } ON COLUMNS,
{[Test].[Measures].[Measure1]} ON ROWS
FROM    [CUBE1]
WHERE {[DIM1].[DIM1].&[209490]


Viewing all articles
Browse latest Browse all 14337

Trending Articles



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