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

filter function with leaves()

$
0
0

Hi,

First, I'm new in MDX so forgive if my question is nobish. I wonder if it is possible to use leaves() and filter function at the same time. So far I can't make it work. I have something like this

SCOPE (leaves(),[Measures].[Min Check Delay]);     
this =iif([Measures].[Max Check Delay]>=0,[Measures].[Max Check Delay],null);    
END SCOPE; 

Is it possible to move the if condition to scope mdx? Something like this

SCOPE (filter(leaves(),[Measures].[Min Check Delay],[Measures].[Max Check Delay]>0));     
this =[Measures].[Max Check Delay];
END SCOPE; 

I know that the second doesn't work, but is it possible to build something like that?

Thanks in advance

Rafael


Rafal


Viewing all articles
Browse latest Browse all 2472

Trending Articles



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