dbTalk Databases Forums  

Customizing the default member in a time dimension

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


Discuss Customizing the default member in a time dimension in the microsoft.public.sqlserver.olap forum.



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

Default Customizing the default member in a time dimension - 09-19-2003 , 01:57 PM







I apologize for the erroneous post I just made


I am trying to set the default member to the current date in a time
dimension

Right now it is hard-coded to Sept 16,2003

[Reporting Date].[Year].&[2003].&[9].&[20030916]

Can I build this somehow to just be the current date?

Joe



Reply With Quote
  #2  
Old   
Tom Chester
 
Posts: n/a

Default Re: Customizing the default member in a time dimension - 09-19-2003 , 02:25 PM






Yes, you can use an MDX expression that formulates the date as a string,
then use StrToMember function to convert it to a member. If you search this
group you will find examples.

tom @ the domain below
www.tomchester.net


"Joe Genshlea" <joegensh (AT) yahoo (DOT) com> wrote

Quote:
I apologize for the erroneous post I just made


I am trying to set the default member to the current date in a time
dimension

Right now it is hard-coded to Sept 16,2003

[Reporting Date].[Year].&[2003].&[9].&[20030916]

Can I build this somehow to just be the current date?

Joe





Reply With Quote
  #3  
Old   
Joe Genshlea
 
Posts: n/a

Default Re: Customizing the default member in a time dimension - 09-19-2003 , 04:09 PM



Thanks,

I can not find any good documentation, nor can i even find a function that
returns the system date in MDX. Could you please explain, again I am new at
this.

Joe

"Tom Chester" <publicNOSPAM (AT) tomchester (DOT) net> wrote

Quote:
Yes, you can use an MDX expression that formulates the date as a string,
then use StrToMember function to convert it to a member. If you search
this
group you will find examples.

tom @ the domain below
www.tomchester.net


"Joe Genshlea" <joegensh (AT) yahoo (DOT) com> wrote in message
news:egEpgAufDHA.632 (AT) TK2MSFTNGP10 (DOT) phx.gbl...

I apologize for the erroneous post I just made


I am trying to set the default member to the current date in a time
dimension

Right now it is hard-coded to Sept 16,2003

[Reporting Date].[Year].&[2003].&[9].&[20030916]

Can I build this somehow to just be the current date?

Joe







Reply With Quote
  #4  
Old   
Tom Chester
 
Posts: n/a

Default Re: Customizing the default member in a time dimension - 09-19-2003 , 04:37 PM



http://www.google.com/groups?hl=en&l...r%3D%26hl%3Den


tom @ the domain below
www.tomchester.net


"Joe Genshlea" <joegensh (AT) yahoo (DOT) com> wrote

Quote:
Thanks,

I can not find any good documentation, nor can i even find a function that
returns the system date in MDX. Could you please explain, again I am new
at
this.

Joe

"Tom Chester" <publicNOSPAM (AT) tomchester (DOT) net> wrote in message
news:TKIab.24$oQ1.25970 (AT) news (DOT) uswest.net...
Yes, you can use an MDX expression that formulates the date as a string,
then use StrToMember function to convert it to a member. If you search
this
group you will find examples.

tom @ the domain below
www.tomchester.net


"Joe Genshlea" <joegensh (AT) yahoo (DOT) com> wrote in message
news:egEpgAufDHA.632 (AT) TK2MSFTNGP10 (DOT) phx.gbl...

I apologize for the erroneous post I just made


I am trying to set the default member to the current date in a time
dimension

Right now it is hard-coded to Sept 16,2003

[Reporting Date].[Year].&[2003].&[9].&[20030916]

Can I build this somehow to just be the current date?

Joe









Reply With Quote
  #5  
Old   
Joe Genshlea
 
Posts: n/a

Default Re: Customizing the default member in a time dimension - 09-19-2003 , 04:54 PM



Thanks, I didn't know that google archived old articles, I use outlook
expres for newsgroups.

Anyhow, the VBA thing doesn't work. What is the name of the library? Does
it install with SQL server 2000 automatically? Do I need to install Office
2000 on the server for the library to load?

Thanks


"Tom Chester" <publicNOSPAM (AT) tomchester (DOT) net> wrote

Quote:
http://www.google.com/groups?hl=en&l...r%3D%26hl%3Den


tom @ the domain below
www.tomchester.net


"Joe Genshlea" <joegensh (AT) yahoo (DOT) com> wrote in message
news:u30LKKvfDHA.3200 (AT) tk2msftngp13 (DOT) phx.gbl...
Thanks,

I can not find any good documentation, nor can i even find a function
that
returns the system date in MDX. Could you please explain, again I am new
at
this.

Joe

"Tom Chester" <publicNOSPAM (AT) tomchester (DOT) net> wrote in message
news:TKIab.24$oQ1.25970 (AT) news (DOT) uswest.net...
Yes, you can use an MDX expression that formulates the date as a
string,
then use StrToMember function to convert it to a member. If you search
this
group you will find examples.

tom @ the domain below
www.tomchester.net


"Joe Genshlea" <joegensh (AT) yahoo (DOT) com> wrote in message
news:egEpgAufDHA.632 (AT) TK2MSFTNGP10 (DOT) phx.gbl...

I apologize for the erroneous post I just made


I am trying to set the default member to the current date in a time
dimension

Right now it is hard-coded to Sept 16,2003

[Reporting Date].[Year].&[2003].&[9].&[20030916]

Can I build this somehow to just be the current date?

Joe











Reply With Quote
  #6  
Old   
Kate
 
Posts: n/a

Default Re: Customizing the default member in a time dimension - 09-19-2003 , 06:05 PM



"Joe Genshlea" <joegensh (AT) yahoo (DOT) com> wrote

Quote:
I apologize for the erroneous post I just made


I am trying to set the default member to the current date in a time
dimension

Right now it is hard-coded to Sept 16,2003

[Reporting Date].[Year].&[2003].&[9].&[20030916]

Can I build this somehow to just be the current date?

Joe
Joe,

I thought something like this should work, but its not testing out for
me. I know I've done what you are trying to do, but then had to back
it out because I'm using ProClarity and it messed up my prebuilt
views.

TAIL([Time].[Month].[Day].Members,1)

Anyway, be aware this is not a System date kind of solution, but is
dependent upon the last data value in your cube. So, you need to take
into account how often the time dimension in your cube is refreshed.


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.