dbTalk Databases Forums  

Default Member Property

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


Discuss Default Member Property in the microsoft.public.sqlserver.olap forum.



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

Default Default Member Property - 09-07-2004 , 03:20 AM






Hi

Im trying to set a default member for a dimension using a MDX expression:

This is what i would like to do but it does not work:
Filter([Consultant].Members,[Consultant].CurrentMember.Properties("LoginName")
= UserName)

But if i dont use Currentmember it works fine:
Filter([Consultant].Members,[Consultant].[JAOR].Properties("LoginName") =
UserName)

why can i use CurrentMember here? Any workaround?

thanks

Jan




Reply With Quote
  #2  
Old   
Dave Wickert [MSFT]
 
Posts: n/a

Default Re: Default Member Property - 09-07-2004 , 12:47 PM






Are you sure that every member has such a member property? Even the ALL
level (if enabled)? :-)
--
Dave Wickert [MSFT]
dwickert (AT) online (DOT) microsoft.com
Program Manager
BI SystemsTeam
SQL BI Product Unit (Analysis Services)
--
This posting is provided "AS IS" with no warranties, and confers no rights.

"Jan Frandegard" <jan.frandegard (AT) dspanel (DOT) com> wrote

Quote:
Hi

Im trying to set a default member for a dimension using a MDX expression:

This is what i would like to do but it does not work:

Filter([Consultant].Members,[Consultant].CurrentMember.Properties("LoginName
")
Quote:
= UserName)

But if i dont use Currentmember it works fine:
Filter([Consultant].Members,[Consultant].[JAOR].Properties("LoginName") =
UserName)

why can i use CurrentMember here? Any workaround?

thanks

Jan






Reply With Quote
  #3  
Old   
Christer K
 
Posts: n/a

Default Re: Default Member Property - 09-08-2004 , 03:00 AM



You'r right here, it works fine if we disable the "All Level". But how
should we do it if we want the "All Level" to be available? Is it possible
to add member properties to the "All level"?

/Christer

"Dave Wickert [MSFT]" <dwickert (AT) online (DOT) microsoft.com> wrote

Quote:
Are you sure that every member has such a member property? Even the ALL
level (if enabled)? :-)
--
Dave Wickert [MSFT]
dwickert (AT) online (DOT) microsoft.com
Program Manager
BI SystemsTeam
SQL BI Product Unit (Analysis Services)
--
This posting is provided "AS IS" with no warranties, and confers no
rights.

"Jan Frandegard" <jan.frandegard (AT) dspanel (DOT) com> wrote in message
news:%23MwaENLlEHA.592 (AT) TK2MSFTNGP11 (DOT) phx.gbl...
Hi

Im trying to set a default member for a dimension using a MDX
expression:

This is what i would like to do but it does not work:


Filter([Consultant].Members,[Consultant].CurrentMember.Properties("LoginName
")
= UserName)

But if i dont use Currentmember it works fine:
Filter([Consultant].Members,[Consultant].[JAOR].Properties("LoginName")
=
UserName)

why can i use CurrentMember here? Any workaround?

thanks

Jan








Reply With Quote
  #4  
Old   
Christer K
 
Posts: n/a

Default Re: Default Member Property - 09-08-2004 , 03:07 AM



Forget my last question... We should of course use children on the "All
level" instead of all membes for the dimension...

:-) Christer

"Christer K" <a@b.com> wrote

Quote:
You'r right here, it works fine if we disable the "All Level". But how
should we do it if we want the "All Level" to be available? Is it possible
to add member properties to the "All level"?

/Christer

"Dave Wickert [MSFT]" <dwickert (AT) online (DOT) microsoft.com> wrote in message
news:ue9oCLQlEHA.592 (AT) TK2MSFTNGP11 (DOT) phx.gbl...
Are you sure that every member has such a member property? Even the ALL
level (if enabled)? :-)
--
Dave Wickert [MSFT]
dwickert (AT) online (DOT) microsoft.com
Program Manager
BI SystemsTeam
SQL BI Product Unit (Analysis Services)
--
This posting is provided "AS IS" with no warranties, and confers no
rights.

"Jan Frandegard" <jan.frandegard (AT) dspanel (DOT) com> wrote in message
news:%23MwaENLlEHA.592 (AT) TK2MSFTNGP11 (DOT) phx.gbl...
Hi

Im trying to set a default member for a dimension using a MDX
expression:

This is what i would like to do but it does not work:



Filter([Consultant].Members,[Consultant].CurrentMember.Properties("LoginName
")
= UserName)

But if i dont use Currentmember it works fine:

Filter([Consultant].Members,[Consultant].[JAOR].Properties("LoginName")
=
UserName)

why can i use CurrentMember here? Any workaround?

thanks

Jan










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.