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

How to apply scope in all measures including calculated measures of Measure Group.

$
0
0

Hello all,

I am able to apply scope in all the measures of a single Measure group but that doesn’t work for the calculated measures of that measure group.

The MeasureGroupMeasures function, as its name implies, returns only the measures that exist in that measure group

SCOPE({MeasureGroupMeasures("FactTable")}) ;

SCOPE([Date].[Date].[Current year]);

This =NULL;

ENDSCOPE;

ENDSCOPE;

Here ,All I want to apply same scope in calculated measure(that’s increases dynamically as of time) of that measure group too. So, can we apply on calculated measures ,After some research I found we can achieve as below but is there any better way or some MDx function.

SCOPE({MeasureGroupMeasures("FactTable"),[Measures].[FactCalMeasure1],..})

Hope to hear some more idea on this.

Thanks,

Anil Maharjan


Viewing all articles
Browse latest Browse all 14337

Trending Articles



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