Quantcast
Channel: SQL Server Analysis Services Forum
Viewing all articles
Browse latest Browse all 2472

MDX equivalent of SQL IN(, , , ,) construct

$
0
0

Very new to MDX, Cubes, DW here. I wrote a query like this

WITH MEMBER [Measures].[AvgValues] as ([Measures].[SumValues])/([Measures].[RowCount])     
SELECT  
  {[Mapping].[MapId].[1],
   [Mapping].[MapId].[2],
   [Mapping].[MapId].[3],
   [Mapping].[MapId].[4],
   [Mapping].[MapId].[4],} ON 0,
   DESCENDANTS({[Mapping].[ResDateHierarchy].[LoggedOn].[2012-05-01]:
                 [Mapping].[ResDateHierarchy].[LoggedOn].[2012-05-03]},1) ON 1               
FROM
    [SIDB]
WHERE
    ([Measures].[Avg Values])

I'm wondering, instead of writing those columns explicitly, does MDX offer something like IN () so I could write them like this way

Mapping.MapID [1,2,3,4,5] or Mapping.MapID[1-5]









Viewing all articles
Browse latest Browse all 2472

Trending Articles



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