![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
anyone knows how to translate this into MDX? SELECT DATEDIFF(day, o.datecreated, getdate()) AS no_of_days_pastdue I'm just counting the number of days since a invoice was created and I am not sure how to do this in AS. Has anyone follow this article? http://blogs.conchango.com/christian...4/30/3901.aspx I keep getting syntax errors. I am using AS 2000. |
#3
| |||
| |||
|
|
can anyone get this to work? DATEDIFF("d", [Calendar].[Day], Now()) Not sure why I am getting unknown dimension for my calendar. "SAM" wrote: anyone knows how to translate this into MDX? SELECT DATEDIFF(day, o.datecreated, getdate()) AS no_of_days_pastdue I'm just counting the number of days since a invoice was created and I am not sure how to do this in AS. Has anyone follow this article? http://blogs.conchango.com/christian...4/30/3901.aspx I keep getting syntax errors. I am using AS 2000. |
#4
| |||
| |||
|
|
anyone knows how to translate this into MDX? SELECT DATEDIFF(day, o.datecreated, getdate()) AS no_of_days_pastdue I'm just counting the number of days since a invoice was created and I am not sure how to do this in AS. Has anyone follow this article? http://blogs.conchango.com/christian...4/30/3901.aspx I keep getting syntax errors. I am using AS 2000. |
#5
| |||
| |||
|
|
anyone knows how to translate this into MDX? SELECT DATEDIFF(day, o.datecreated, getdate()) AS no_of_days_pastdue I'm just counting the number of days since a invoice was created and I am not sure how to do this in AS. Has anyone follow this article? http://blogs.conchango.com/christian...4/30/3901.aspx I keep getting syntax errors. I am using AS 2000. |
#6
| |||
| |||
|
|
This is what I have so far: WITH MEMBER [Measures].[DaysPast] AS 'DATEDIFF("d",[Calendar].CurrentMember, date())' SELECT {[Measures].[DaysPast], [Measures].[Amount Due]} on columns, [Account Invoices].[Account Name].members on rows FROM [Account Invoices History] but I get an #error in the dayspast field. "SAM" wrote: can anyone get this to work? DATEDIFF("d", [Calendar].[Day], Now()) Not sure why I am getting unknown dimension for my calendar. "SAM" wrote: anyone knows how to translate this into MDX? SELECT DATEDIFF(day, o.datecreated, getdate()) AS no_of_days_pastdue I'm just counting the number of days since a invoice was created and I am not sure how to do this in AS. Has anyone follow this article? http://blogs.conchango.com/christian...4/30/3901.aspx I keep getting syntax errors. I am using AS 2000. |
![]() |
| Thread Tools | |
| Display Modes | |
| |