![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
| Newsgroups: microsoft.public.sqlserver.olap |
|
Hello! I am new in MDX, How I find current date in MDX? Thankx in advance. Naseer -- Posted via http://dbforums.com |
#3
| |||
| |||
|
|
Assuming that your Time dimension already has [Day] members for the current date, you can use the VBA Now() function: http://groups-beta.google.com/group/...rver.olap/msg/ d10acbc0713a7de8?hl=en Newsgroups: microsoft.public.sqlserver.olap From: George Spofford <geo... (AT) dsslab (DOT) com Date: Tue, 28 Jan 2003 08:00:11 -0500 Subject: Re: Find Current Date By using the VBA!Now() function (part of the VBA library). To use it to look up a time member whose name is something like "Jan 28, 2003", try: StrToMember ("[Time]." + VBA!Format (VBA!Now(), "\[mmm dd, yyyy\]")) HTH naseer78 wrote: Hello! I am new in MDX, How I find current date in MDX? Thankx in advance. Naseer -- Posted via http://dbforums.com -- George Spofford Microsoft MVP Chief Architect / OLAP Solution Provider DSS Lab .. - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
![]() |
| Thread Tools | |
| Display Modes | |
| |