Thanks Deepak.
Actually I want a Dimension member called "Current Date", which will always
show me current day's report.
I tried to create a member using "strToMember" and "Now()" in proclarity
6.0, and it works well upto current week. The "Time" table has Ids for all
members like year (2003, 2004 etc) month (1 to 12), but for day the row id is
used (it's an identity column), I can't change the design. The tables first
row starts with 1st jan 2003, so using datediff(d,"2003-1-1",Now()) i should
get the current day's id.
MSAS 2000 allows me to create set, but "datediff" gives error, i tried using
vba! but in vain. Even proclarity gives error with "DateDiff"
Can u suggest something.
by the way, the url is not working, shows "page not found"
Thanks
kshitij.
"Deepak Puri" wrote:
Quote:
You should be able to use the VBA DateDiff() function:
http://msdn.microsoft.com/library/de.../en-us/dnvbade
v/html/performingsimplecalculations.asp
...
For example, to calculate the number of hours that occurred between two
date variables, dtmValue1 and dtmValue2, you could write an expression
like this:
DateDiff("h", dtmValue1, dtmValue2)
...
- Deepak
Deepak Puri
Microsoft MVP - SQL Server
*** Sent via Developersdex http://www.developersdex.com *** |