Showing posts with label as2000. Show all posts
Showing posts with label as2000. Show all posts

Monday, March 26, 2012

Problems with roles after migration from AS2000 to SSAS2005

Hi All,

I am having trouble with the access roles after migrating from AS2000 to SSAS2005. The automated migration did not seem to work so I am trying to get it to work manually and hopefully learning something in the process.

Limiting access to dimension members/hierarchies
In AS2000 we relied heavily on limiting access on certain dimensions, e.g. to allow certain parts of the organization to only access parts of the organization dimension. Thus 'Europe' would only have access to 'Europe' and all European countries below.

I think I understand how to implement this in SSAS2005 also and I get the desired behaviour.

Limiting access to measures
However, in AS2000 we also limited what measures should be shown in the virtual cubes. This was done by disallowing access to some of the measures in the underlying cubes and the calculated measures contained in the virtual cube would simply not be accessible.

This behavior I don't seem to be able to replicate in SSAS2005.

This is my current setup:
One Order cube with one measure and five calculated measures.
The measure are linked into another cube, i.e. Sales.

In the Sales cube I want to remove the access to the measure and the five calculated measures for one role.

In AS2000 the role I just denied access to the measure in the virtual cube and the calculated measures based on this measure were hidden as well. I can't seem to do that here.

I have tried the following:

    I have tried to deny the calculated measures in the Sales cube directly using "Advanced". "Denied member set". In the MDX-editor this went through without a complaint but it did not seem to have any effect. Additionally, when I opened the role through Management Studio it complained that it the members did not exist or something similar. :-(I have tried to deny access to the original measure in the Order cube (the cube I am linking from) as well as the calculated members to no avail and with the same result.
I am at a loss here. This was so simple in AS2000. I must be missing something obvious.

Hope you can help me.

Best regards

/A

The reason it worked like you described in AS2000, because AS2000 ignored the MDX commands with errors. Therefore when measure was secured, the calculated measures which were based on it raised errors, and AS2000 ignored these calculated measures, so the effect on end user was that these calculated measures effectively disappeared, so it looked like they got secured as well.

To get the same behavior in AS2005, you need to set ScriptErrorHandlingMode property of the cube into IgnoreAll value.

|||Ah, great, thank you!

I would never have figured that out for myself.sql

Tuesday, March 20, 2012

Problems with MDX and linked objects

I have some cubes that are joined as linked objects (migration of a virtual cube from AS2000).

In the old setup an mdx like this was used to do a certain count:

'nonemptycrossjoin({Descendants([carnumber],[carnumber].[carnumber])},{Descendants([Group],[Group].[Group])},{Descendants([Time].[Time],[Time].[Time].[Day])},).count'

This was used within a cube called Services which was part of a virtual "KPI" cube

Now in SSAS2005 these are joined as a linked object.

The problem now is that the count that before gave 8000 now gives about 2000000, which is understandable, since the MDX now counts across several cubes in the linked cube.

Is there a way to do this count within only one of the linked cubes ?

What number you are counting? My guess, that if you are using function NonEmptyCrossjoin you want count agains some particular measure, in the query there is no measure (is it a typo?). In this case NECJ works agains all the measure groups. If you don't care about a measure value, when performing count you shouldn't use NECJ and use plain Crossjoin function.

|||

Thanks

It worked in AS2000 and gave the count i wanted. Added a measure in 2005 cube and now the mdx works. Thanks :-)