Addcalculatedmembers() – MDX function

in Analysis services as we write MDX queries against cube we add calculated members to the dimensions by using CREATE MEMBER or WITHMEMBER

Syntax : Addcalculatedmembers({set})

Addcalculatedmembers() will returns set of calculated members in cube or scope

lets see what MSDN says

: Returns a set generated by adding calculated members to a specified set.

well questions arises when we added a calculated member cant we retrieve it using the metadata functions like .Members, .Children, Descendants()

NO , only Base members are returned

lest’s go in to the details with some examples

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s