Quantcast
Channel: SQLServerCentral » Data Warehousing » Analysis Services » Latest topics
Viewing all articles
Browse latest Browse all 1341

Calculated measure based on dimension attribute repeats

$
0
0
I'm new to SSAS so bear with me.I have a calculated measure based on an attribute in one of my dimensions. The calculation looks like this:CREATE MEMBER CURRENTCUBE.[Measures].[Office Visits] AS sum(EXISTING({[Location].[Place of Service].&[11]}), [Measures].[Encounters]), FORMAT_STRING = "Standard", NON_EMPTY_BEHAVIOR = { [Encounters] }, VISIBLE = 1 , ASSOCIATED_MEASURE_GROUP = 'Encounters' It calculates correctly when I browse by Place of Service but when I try to browse by another attribute of that Location dimension "LocationName" then the calculated measure value just repeats for each LocationName. I'm sure this must have something to do with attribute relationships or the hierarchy but I just don't understand the behavior here. :blink:

Viewing all articles
Browse latest Browse all 1341