dbTalk Databases Forums  

Date Range - error in the COM component

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


Discuss Date Range - error in the COM component in the microsoft.public.sqlserver.olap forum.



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

Default Date Range - error in the COM component - 10-27-2004 , 05:26 PM






Hi everybody,
I have a strange problem with date ranges. I am using MDX Sample
Application. First code below works fine. Second code returns the error
message "Unable to open cellset. The operation has failed because of an
error in the COM component - unknown error"

Both dimensions (Date & Date Placed) have the same structure. Example:
- 2004 (Year)
- Quarter 1, 2004 (Quarter)
- January, 2004 (Month)
- January 5, 2004 (Day)

What's wrong?

Thanks in advance for your help.

Regards,
Marco


Code 1
------
WITH
SET [SetRange] as 'FILTER ([Date].[Day].Members,
VBA!CDate([Date].CurrentMember.Name) <= VBA!CDate("01/04/2004") )'
MEMBER [Date].[Range] As 'Aggregate([SetRange])'
SELECT
{Measures.DefaultMember} on columns,
NON EMPTY {[Plant].Children} on rows
FROM [Sales]
WHERE ([Date].[Range])

Code 2
------
WITH
SET [SetRange] AS 'FILTER( [Date Placed].[Day].Members, VBA!CDate([Date
Placed].CurrentMember.Name) <= VBA!CDate("03/27/2004") )'
MEMBER [Date Placed].[Range] AS 'Aggregate([SetRange])'
SELECT
{Measures.DefaultMember} on columns,
NON EMPTY {[Plant].Children} on rows
FROM [CIR]
WHERE ([Date Placed].[Range])




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.