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

filter issue

$
0
0
With

Set [TimeFrame] as
DrillDownLevel({filter({[Start Dt].[StartYearMonth].[Year].Members}
,Cstr([Start Dt].[StartYearMonth].CurrentMember.Name)=Cstr(IIF("2012"="",Year(now()),2012))).item(0)})


Member [Class].[Class].[Data]
AS (Aggregate( {[Class].[Class].[Class].[Data]} *
       EXCEPT([Classification].[Classification].[Classification].members,
       [Classification].[Classification].[Classification].[Inactive]
       ) ,[Measures].[Task Open Cnt]))
       

SELECT [Class].[Class].[Data ON COLUMNS,
[TimeFrame] ON ROWS
FROM [workOrd]
WHERE
{[Country].[country].[US]
,[Classification].[Classification].[Classification].[Process]}


Following are my valid Classification

Active
Inactive
Process
Canceled

I want to exclude Inactive always,

If i use [Classification].[Classification].[Classification].[Process] in WHERE Clause,
it still shows everything except [Inactive], basically WHERE Clause has no effect ,

is there any wrong in mdx

thanks
V

Viewing all articles
Browse latest Browse all 2472

Trending Articles



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