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

Setting All level to null on selected measures without impacting other hierarchies

$
0
0

I have a requirement to set the All level to null for specific measures sliced by specific dimensions. This code does the trick for the dim in question, but when the dim is not part of the query, it’s All level is in scope, so sets the measure to 0 throughout the cube.

Scope ([Measures].[Analytic Admit Cnt]);

Scope([HCC Market Share].[HCC Market Share].[All]);

This = null;

End Scope;

End Scope;

I can make the All level disappear altogether by setting the IsAggregatable setting to false on the level before it, but then I would have to choose a default member at that level, which would set the whole cube to that default.  That isn’t a good option either. 

Please advise if there are any other options available.

We are using SSAS 2012 SP1



Viewing all articles
Browse latest Browse all 14337

Trending Articles



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