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

Conditional Aggregation of Measure based on dimensions

$
0
0

Hey Guys,

Currently my Cube has 5 dimensions and 1 measure group.

Dimensions : Booking Center, Time, Product (Parent Child), Service (Parent Child) and Value Type (Parent Child)

Measure: Value

My requirement is such that when the user is using Value Type Hierarchy (may be analyzing in combination with other dimensions too) the Measure Value uses a calculation, otherwise when Value Type Hierarchy is not in scope there is no calculation applied to the measure value.

I don't want to create a calculated measure  as the user should be able to drag just one measure and see the results.

I was thinking if this could be achieved using SCOPE or any other MDX expression!

Logically I want something like this:

If [Value Type].[Value Type Hierarchy] is present(as in if user drags it)

Then some calculation over [Measure].[Value]

Else use [Measure].[Value]

This is my first post and I am new with SSAS. Hope if you guys can help.



Viewing all articles
Browse latest Browse all 14337

Trending Articles



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