dbTalk Databases Forums  

Experts Can u help!

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


Discuss Experts Can u help! in the microsoft.public.sqlserver.olap forum.



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

Default Experts Can u help! - 04-07-2004 , 06:35 AM






Hey can anybody help in my query?? The follwoing is the
query..it is retrving data fine..ie its giving the sum of
last measures(count) for the last 7 days..but the thing i
don't want gv the time(hardcoded) in the function..And
also I don't want to gv in the where condition..that means
the time should be dynimacally..If the user runs
today..system will take the max date of time dim and from
that it should calculate to the last 7 days .If i give
newtime.currentmember its working for one level only(for
the whole period of newtime dimension..)..how it works
dynamically?????
member
[MEasures].[Last7days] as 'sum(lastperiods(7,[newtime].
[All newtime].[1997].[December].[4]),([Measures].[Count]))'


Reply With Quote
  #2  
Old   
Andrej Hudoklin
 
Posts: n/a

Default Re: Experts Can u help! - 04-07-2004 , 07:48 AM






I don't exactly understand.
Would you like to have always the last seven days, that is from today 7 days
back
or
the last 7 days of yor currentmember?


Peace,
Andrej


"naveen" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hey can anybody help in my query?? The follwoing is the
query..it is retrving data fine..ie its giving the sum of
last measures(count) for the last 7 days..but the thing i
don't want gv the time(hardcoded) in the function..And
also I don't want to gv in the where condition..that means
the time should be dynimacally..If the user runs
today..system will take the max date of time dim and from
that it should calculate to the last 7 days .If i give
newtime.currentmember its working for one level only(for
the whole period of newtime dimension..)..how it works
dynamically?????
member
[MEasures].[Last7days] as 'sum(lastperiods(7,[newtime].
[All newtime].[1997].[December].[4]),([Measures].[Count]))'




Reply With Quote
  #3  
Old   
naveen
 
Posts: n/a

Default Re: Experts Can u help! - 04-07-2004 , 08:58 AM



Last 7 days of the currentmember(the current member means
the recent date of my time dimension)...
Quote:
-----Original Message-----
I don't exactly understand.
Would you like to have always the last seven days, that
is from today 7 days
back
or
the last 7 days of yor currentmember?


Peace,
Andrej


"naveen" <anonymous (AT) discussions (DOT) microsoft.com> wrote in
message
news:195e601c41c94$6dc26350$a501280a (AT) phx (DOT) gbl...
Hey can anybody help in my query?? The follwoing is the
query..it is retrving data fine..ie its giving the sum
of
last measures(count) for the last 7 days..but the thing
i
don't want gv the time(hardcoded) in the function..And
also I don't want to gv in the where condition..that
means
the time should be dynimacally..If the user runs
today..system will take the max date of time dim and
from
that it should calculate to the last 7 days .If i give
newtime.currentmember its working for one level only(for
the whole period of newtime dimension..)..how it works
dynamically?????
member
[MEasures].[Last7days] as 'sum(lastperiods(7,[newtime].
[All newtime].[1997].[December].[4]),([Measures].
[Count]))'



.


Reply With Quote
  #4  
Old   
naveen
 
Posts: n/a

Default Re: Experts Can u help! - 04-07-2004 , 10:16 AM



Last 7 days from the recent date of entered data..ie in my
time dim table the recent date is 31 dec 1998..so from
that it will take 7 days...how can we do it ???

Quote:
-----Original Message-----
Last 7 days of the currentmember(the current member means
the recent date of my time dimension)...
-----Original Message-----
I don't exactly understand.
Would you like to have always the last seven days, that
is from today 7 days
back
or
the last 7 days of yor currentmember?


Peace,
Andrej


"naveen" <anonymous (AT) discussions (DOT) microsoft.com> wrote in
message
news:195e601c41c94$6dc26350$a501280a (AT) phx (DOT) gbl...
Hey can anybody help in my query?? The follwoing is the
query..it is retrving data fine..ie its giving the sum
of
last measures(count) for the last 7 days..but the
thing
i
don't want gv the time(hardcoded) in the function..And
also I don't want to gv in the where condition..that
means
the time should be dynimacally..If the user runs
today..system will take the max date of time dim and
from
that it should calculate to the last 7 days .If i give
newtime.currentmember its working for one level only
(for
the whole period of newtime dimension..)..how it works
dynamically?????
member
[MEasures].[Last7days] as 'sum(lastperiods(7,[newtime].
[All newtime].[1997].[December].[4]),([Measures].
[Count]))'



.

.


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.