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

MDX Except() empty cell issue

$
0
0

Hi,

I'm using Except() with NonEmpty() to create a set of new products based on transaction time.

Here an extract from the query :

WITH SET NewSet AS           
        
EXCEPT(              
         
NONEMPTY( { [Product].[Product Hierarchy].[Product].members}, { [Date].[Financial Calendar].[Financial Year].&[2014]} * { [Measures].[Transaction Count] }),                 
        
NONEMPTY( { [Product].[Product Hierarchy].[Product].members}, { [Date].[Financial Calendar].[Financial Year].&[2009] : [Date].[Financial Calendar].[Financial Year].&[2013] } * { [Measures].[Transaction Count] })            
           
)           

The issue I have is that we have empty cell values as there are other measure values present in 2009:2013 for the products I expect to see in 2014, the effect being that they get removed by Except when I need them present.

I kind of need to wrap the second NONEMPTY with NON EMPTY but of course I can't do this in a set calculation.

I've tried wrapping the measure in the second NONEMPTY with a filter. 

FILTER({ [Measures].[Txn Sale Volume] },[Measures].[Txn Sale Volume]>=1) 

But this has no effect.

Any ideas how I can overcome this problem?


Lee Hawthorn ACMA, CGMA View my Performance Management blog at leehbi.com



Viewing all articles
Browse latest Browse all 14337

Trending Articles



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