dbTalk Databases Forums  

Create Member and Dynamic Dimension level security

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


Discuss Create Member and Dynamic Dimension level security in the microsoft.public.sqlserver.olap forum.



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

Default Create Member and Dynamic Dimension level security - 04-06-2006 , 04:05 AM






Hi all,
I am stuck in a problem where I need your precious advice..
My scenario is I am Using Dynamic Security and using different roles
for accessing members.
For Example
Role 'A': got 'Full' level accessible on time Dimension (i.e.
All, Year, Quarter, Month)
Role 'B': only got 'DAY' accessible

In short, I have only bottom level visible for Role B. Moreover, my
cube contains a Distinct Count Measure. In consequence, I think I am
unable to go for 'Visual Totals'. I am using XMLA to query MS OLAP.


Can I create member on a different level (other than (All) and call
that member in the MDX for a restrictive role (i.e for Role 'B').

MDX QUERY:
With MEMBER [Time].[-Sub Total] AS ' SUM
(GENERATE(HIERARCHIZE(DISTINCT({Time.[Year].Members})),
HEAD(INTERSECT(HIERARCHIZE(DISTINCT({Time.[Year].Members})),
ASCENDANTS(Time.CurrentMember)))))' , SOLVE_ORDER = 1000
SELECT {[Unit Sales]} ON COLUMNS, {{Time.[Day].Members, Time.[-Sub
Total]}} ON ROWS FROM [Sales] CELL PROPERTIES
[VALUE],[FORMATTED_VALUE],[CELL_ORDINAL]

While executing the above Query for a user login with Role 'B' I
receive Following Error
Formula error - cannot bind: unknown member: "Time.[-Sub Total]"

However, it works fine for a user login with Role 'A'

Can some body help...
Thanks in advance.

Kind Regards
--danishnajam


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.