dbTalk Databases Forums  

Getdate() + SSAS2005

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


Discuss Getdate() + SSAS2005 in the microsoft.public.sqlserver.olap forum.



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

Default Getdate() + SSAS2005 - 09-18-2006 , 07:41 AM






Hi,

In SSAS2000 I used the folowing formula in a SSDS2000 view:

LEFT (CONVERT (CHAR; GETDATE(); 105); 11) + CONVERT (CHAR; GETDATE();
108)

Now in SSAS2005 I would like to have the same working in both Data
Source View and OLAP Cube / Dimension

I tried to have the following formulas in Data Source View:
1. Getdate()
2. CONVERT (CHAR; GETDATE(); 105)
3. LEFT (CONVERT (CHAR; GETDATE(); 105); 11) + CONVERT (CHAR;
GETDATE(); 108)

1. Getdate() shows the correct date but press ok on Data Source View
ends in an error and it can't ber saved.
2. CONVERT (CHAR; GETDATE(); 105) shows the correct date in Data Source
View but it is not accepted in the OLAP Cube
3. LEFT (CONVERT (CHAR; GETDATE(); 105); 11) + CONVERT (CHAR;
GETDATE(); 108) shows the correct date in Data Source View but it is
not accepted in the OLAP Cube

I only want to show the date + time of data processed in the OLAP Cube
in an OLAP Report.

Any ideas / comments to have this working. What is the email address or
message board of Microsoft to report any errors, questions, etc
regarding the new SQL Server 2005 components: SSDS, SSAS, SSIS, SSMS,
etc ?

Regards, Marco


Reply With Quote
  #2  
Old   
SAM
 
Posts: n/a

Default RE: Getdate() + SSAS2005 - 09-18-2006 , 10:53 AM






I had to use Now().

"Marco" wrote:

Quote:
Hi,

In SSAS2000 I used the folowing formula in a SSDS2000 view:

LEFT (CONVERT (CHAR; GETDATE(); 105); 11) + CONVERT (CHAR; GETDATE();
108)

Now in SSAS2005 I would like to have the same working in both Data
Source View and OLAP Cube / Dimension

I tried to have the following formulas in Data Source View:
1. Getdate()
2. CONVERT (CHAR; GETDATE(); 105)
3. LEFT (CONVERT (CHAR; GETDATE(); 105); 11) + CONVERT (CHAR;
GETDATE(); 108)

1. Getdate() shows the correct date but press ok on Data Source View
ends in an error and it can't ber saved.
2. CONVERT (CHAR; GETDATE(); 105) shows the correct date in Data Source
View but it is not accepted in the OLAP Cube
3. LEFT (CONVERT (CHAR; GETDATE(); 105); 11) + CONVERT (CHAR;
GETDATE(); 108) shows the correct date in Data Source View but it is
not accepted in the OLAP Cube

I only want to show the date + time of data processed in the OLAP Cube
in an OLAP Report.

Any ideas / comments to have this working. What is the email address or
message board of Microsoft to report any errors, questions, etc
regarding the new SQL Server 2005 components: SSDS, SSAS, SSIS, SSMS,
etc ?

Regards, Marco



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

Default Re: Getdate() + SSAS2005 - 09-18-2006 , 12:28 PM



Is now() working within SSAS 2005 instead of getdate() ?

I will check also with our BI/OLAP database. If I remember well now()
is showing the local date?

Regards, Marco


SAM schreef:

Quote:
I had to use Now().

"Marco" wrote:

Hi,

In SSAS2000 I used the folowing formula in a SSDS2000 view:

LEFT (CONVERT (CHAR; GETDATE(); 105); 11) + CONVERT (CHAR; GETDATE();
108)

Now in SSAS2005 I would like to have the same working in both Data
Source View and OLAP Cube / Dimension

I tried to have the following formulas in Data Source View:
1. Getdate()
2. CONVERT (CHAR; GETDATE(); 105)
3. LEFT (CONVERT (CHAR; GETDATE(); 105); 11) + CONVERT (CHAR;
GETDATE(); 108)

1. Getdate() shows the correct date but press ok on Data Source View
ends in an error and it can't ber saved.
2. CONVERT (CHAR; GETDATE(); 105) shows the correct date in Data Source
View but it is not accepted in the OLAP Cube
3. LEFT (CONVERT (CHAR; GETDATE(); 105); 11) + CONVERT (CHAR;
GETDATE(); 108) shows the correct date in Data Source View but it is
not accepted in the OLAP Cube

I only want to show the date + time of data processed in the OLAP Cube
in an OLAP Report.

Any ideas / comments to have this working. What is the email address or
message board of Microsoft to report any errors, questions, etc
regarding the new SQL Server 2005 components: SSDS, SSAS, SSIS, SSMS,
etc ?

Regards, Marco




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

Default Re: Getdate() + SSAS2005 - 09-18-2006 , 04:14 PM



Hi,

now() is not working. errors in the ssas2005 view.

I did install ssas2000 and do a migrate and now i see why there was
always an error.

You may not use CONVERT (CHAR(11); GETDATE(); 105) + CONVERT (CHAR;
GETDATE(); 108) as key of an attribute of a dimension in SSAS2005. This
is only working as name. Adding a new computed field in the ssas2005
view: CONVERT (CHAR(11); GETDATE(); 112) and use it as key for the
dimension attribute and now it is working ok.

Any idea if there is somewhere on internet a document with time/date
handling issues for SSAS2005 ?

Regards, Marco


Marco schreef:

Quote:
Is now() working within SSAS 2005 instead of getdate() ?

I will check also with our BI/OLAP database. If I remember well now()
is showing the local date?

Regards, Marco


SAM schreef:

I had to use Now().

"Marco" wrote:

Hi,

In SSAS2000 I used the folowing formula in a SSDS2000 view:

LEFT (CONVERT (CHAR; GETDATE(); 105); 11) + CONVERT (CHAR; GETDATE();
108)

Now in SSAS2005 I would like to have the same working in both Data
Source View and OLAP Cube / Dimension

I tried to have the following formulas in Data Source View:
1. Getdate()
2. CONVERT (CHAR; GETDATE(); 105)
3. LEFT (CONVERT (CHAR; GETDATE(); 105); 11) + CONVERT (CHAR;
GETDATE(); 108)

1. Getdate() shows the correct date but press ok on Data Source View
ends in an error and it can't ber saved.
2. CONVERT (CHAR; GETDATE(); 105) shows the correct date in Data Source
View but it is not accepted in the OLAP Cube
3. LEFT (CONVERT (CHAR; GETDATE(); 105); 11) + CONVERT (CHAR;
GETDATE(); 108) shows the correct date in Data Source View but it is
not accepted in the OLAP Cube

I only want to show the date + time of data processed in the OLAP Cube
in an OLAP Report.

Any ideas / comments to have this working. What is the email address or
message board of Microsoft to report any errors, questions, etc
regarding the new SQL Server 2005 components: SSDS, SSAS, SSIS, SSMS,
etc ?

Regards, Marco




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.