Welcome, Guest
Username Password: Remember me
  • Page:
  • 1

TOPIC: Help with query

Help with query 10 months, 2 weeks ago #3051

  • IdoD
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
Hi,

I am new with MDX and new some help ...

I have 3 integer fields that represent a date (day , month , year).
I need to return on the query a single result with datetime type.

eg, SQL syntax:

y=2012
m=10
d=15

select cast(rtrim(y*10000+m*100+d) as datetime)

Re: Help with query 10 months, 2 weeks ago #3052

Hi IdoD,

You can reference the excel vba reference like this

with
member [measures].[defined_date] as vba.dateserial(2010, 11, 13)
select
[measures].[defined_date] on 0
from [adventure works]

HTH

Paul
www.paultebraak.wordpress.com
  • Page:
  • 1
Time to create page: 0.13 seconds
 

Pyramid Analytics