dbTalk Databases Forums  

dynamic security with lookup cube problem

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss dynamic security with lookup cube problem in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Kuba
 
Posts: n/a

Default dynamic security with lookup cube problem - 11-10-2005 , 07:31 AM






I have created "Users" cube with two dims only: App_Unit and User.
I want to base security in another cube on cube Users.
The only difference between Unit (used in another cube) and App_Unit (used
in "Users" cube) is App_Unit does not use rollups (no need to use datamember
then). All identifiers and properties are just the same in both dims.

The following MDX returns correct members in MDX Sample Application (as a
part of select query) and works ok as named set.
Unfortunatelly it gives error when pasted into dimension security advanced
mdx field ("Cannot evaluate expression")

filter([Jednostka].Members,(lookupcube("Users","([USER].&["+lCase(username)+"],[Measures].[Value],[App_Unit].&["+[Jednostka].CurrentMember.Properties("OriginalMember")+"])")=1
))

Any ideas?

Kuba



Reply With Quote
  #2  
Old   
Dean Adam
 
Posts: n/a

Default RE: dynamic security with lookup cube problem - 11-10-2005 , 11:02 AM






In AS 2000, LookupCube is not allowed in MDX for dimension security.

--
Dean Adam
Magenic Technologies


"Kuba" wrote:

Quote:
I have created "Users" cube with two dims only: App_Unit and User.
I want to base security in another cube on cube Users.
The only difference between Unit (used in another cube) and App_Unit (used
in "Users" cube) is App_Unit does not use rollups (no need to use datamember
then). All identifiers and properties are just the same in both dims.

The following MDX returns correct members in MDX Sample Application (as a
part of select query) and works ok as named set.
Unfortunatelly it gives error when pasted into dimension security advanced
mdx field ("Cannot evaluate expression")

filter([Jednostka].Members,(lookupcube("Users","([USER].&["+lCase(username)+"],[Measures].[Value],[App_Unit].&["+[Jednostka].CurrentMember.Properties("OriginalMember")+"])")=1
))

Any ideas?

Kuba




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.