简体   繁体   中英

Creating Calculated Member in SSAS cube after renaming Dimension Attribute

I am very new to SSAS Cubes, and do not know MDX.

I need help in creating a calculated member. The dimension attribute that I am using in the calculated member calculation, is renamed, and that is why the calculation is not working.

I have a dimension named " IN " in the cube, and I am trying to count the "CounterKey" in the measures group when the value of attribute "C 1" in the "IN" dimension is 1.

I used the calculation below and it worked fine.

([Measures].[CounterKey count],([Dim IN].[C 1 Top Box].&[1]))

I had to rename "C 1" to a more user friendly/descriptive name ie "Courtesy TB" . After changing the name, I made the change in the calculated member as below as below

([Measures].[CounterKey count],([Dim IN].[Courtesy TB].&[1]))

but the calculation is not working any more, and I am just getting a null as a result.

Any help will be highly appreciated.

It seems this is the wrong renaming or something else. Try to drag'n'drop the member from your cube and insert into the formula. Will the following return the null?

[Dim IN].[C 1 Top Box].&[1].UniqueName

If null, it means the member doesn't exist any more within a cube. It's a naming issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM