dbaspot
Tags Register FAQ Calendar Search Today's Posts Mark Forums Read

No data returned for basic query in Adventure Works - data.oledb.olap

This is a discussion on No data returned for basic query in Adventure Works - data.oledb.olap ; Hi, I've been having odd issues running some tests against the Adventure Works data where I send a query for 45 members and only get 27 back. After breaking down the mdx query into smaller chunks. I found that any ...


Home > Database Forum > Data Warehousing > data.oledb.olap > No data returned for basic query in Adventure Works

Reply

 

LinkBack Thread Tools Display Modes
  #1  
Old 08-31-2008, 10:47 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default No data returned for basic query in Adventure Works

Hi,

I've been having odd issues running some tests against the Adventure
Works data where I send a query for 45 members and only get 27 back.
After breaking down the mdx query into smaller chunks. I found that
any member from [Date].[Calendar Quarter of Year], when crossjoin or
Tupled with any other Date hierarchy, returned as if the member didn't
exist.

Easy to replicate


SELECT
{
[Date].[Week of Year].&[1]
}
*
{
[Date].[Calendar Quarter of Year].&[CY Q2]
}
ON 0
FROM [Finance]

Should return me a 2 members and a single cell. The message I get is

Executing the query ...
Obtained object of type:
Microsoft.AnalysisServices.AdomdClient.CellSet
Formatting.
Cell set consists of 1 rows and 0 columns.
Done formatting.
Execution complete

I'm running SSAS 2005 SP2 on Windows Vista with latest SP/Patches
installed


Can anyone explain why?

TIA
Reply With Quote
  #2  
Old 08-31-2008, 11:14 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: No data returned for basic query in Adventure Works

On Sep 1, 12:47*pm, gilly1...@gmail.com wrote:
> Hi,
>
> I've been having odd issues running some tests against the Adventure
> Works data where I send a query for 45 members and only get 27 back.
> After breaking down the mdx query into smaller chunks. I found that
> any member from [Date].[Calendar Quarter of Year], when crossjoin or
> Tupled with any other Date hierarchy, returned as if the member didn't
> exist.
>
> Easy to replicate
>
> SELECT
> {
> [Date].[Week of Year].&[1]}
>
> *
> {
> [Date].[Calendar Quarter of Year].&[CY Q2]}
>
> ON 0
> FROM [Finance]
>
> Should return me a 2 members and a single cell. The message I get is
>
> Executing the query ...
> Obtained object of type:
> Microsoft.AnalysisServices.AdomdClient.CellSet
> Formatting.
> Cell set consists of 1 rows and 0 columns.
> Done formatting.
> Execution complete
>
> I'm running SSAS 2005 SP2 on Windows Vista with latest SP/Patches
> installed
>
> Can anyone explain why?
>
> TIA


I've just recently discovered that the issue is not related to the
entire Hierarchy, but only to members
Qy C2, Qy C3 and Qy C4
Reply With Quote
  #3  
Old 10-31-2008, 12:15 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: No data returned for basic query in Adventure Works

I think it is the result of Autoexists behavior.
http://msdn.microsoft.com/en-us/library/ms345116.aspx

Actually, DimTime table has no data mapped to the tuple, ([CY Q2], [1]).

select * from DimTime
where WeekNumberOfYear = 1 and CalendarQuarter = 2

Ohjoo

wrote in message
news:1f5a6cae-8473-4935-8fe1-471c83dc18b7@i20g2000prf.googlegroups.com...
On Sep 1, 12:47 pm, gilly1...@gmail.com wrote:
> Hi,
>
> I've been having odd issues running some tests against the Adventure
> Works data where I send a query for 45 members and only get 27 back.
> After breaking down the mdx query into smaller chunks. I found that
> any member from [Date].[Calendar Quarter of Year], when crossjoin or
> Tupled with any other Date hierarchy, returned as if the member didn't
> exist.
>
> Easy to replicate
>
> SELECT
> {
> [Date].[Week of Year].&[1]}
>
> *
> {
> [Date].[Calendar Quarter of Year].&[CY Q2]}
>
> ON 0
> FROM [Finance]
>
> Should return me a 2 members and a single cell. The message I get is
>
> Executing the query ...
> Obtained object of type:
> Microsoft.AnalysisServices.AdomdClient.CellSet
> Formatting.
> Cell set consists of 1 rows and 0 columns.
> Done formatting.
> Execution complete
>
> I'm running SSAS 2005 SP2 on Windows Vista with latest SP/Patches
> installed
>
> Can anyone explain why?
>
> TIA


I've just recently discovered that the issue is not related to the
entire Hierarchy, but only to members
Qy C2, Qy C3 and Qy C4


Reply With Quote
Reply

Thread Tools
Display Modes



All times are GMT -4. The time now is 10:12 AM.