English 中文(简体)
MDX驱动的有价证券收益
原标题:MDX driven QueryTable returns no rows

I m using Excel 2007 and this method to populate a querytable with and MDX query. When I run the MDX query in BIDS I get a normal result (7x2 result set). However, when I use it in the QueryTable, I only get two column headers (no results).
Can anyone tell me why the results aren t being returned to the QueryTable?

MDX Query:

SELECT
  NULL ON 0
 ,NonEmptyCROSSJOIN([Item].[Company].CHILDREN
 ,[Item].[Division].CHILDREN) ON ROWS
FROM
  [PETE];

Result in QueryTable:

Column Header 1: [Item].[Company].[Company].[MEMBER_CAPTION]
Column Header 2: [Item].[Division].[Division].[MEMBER_CAPTION]

Results in BIDS:

Company1 Division1
Company1 Division2
Company1 Division3
etc..

最佳回答

安排NCL ON 0 ->{} on 0 is a bit more MDX but I no consider it s problem. 我受过教育的猜测是你没有数据栏。

If you get rid of this or change with a dummy [Measures].defaultmember member, what do you get in Excel ?

问题回答

暂无回答




相关问题
import of excel in SQL imports NULL lines

I have a stored procedure that imports differently formatted workbooks into a database table, does work on them then drops the table. Here is the populating query. SELECT IDENTITY(INT,1,1) AS ID ...

Connecting to Oracle 10g with ODBC from Excel VBA

The following code works. the connection opens fine but recordset.recordCount always returns -1 when there is data in the table. ANd If I try to call any methods/properties on recordset it crashes ...

Excel date to Unix timestamp

Does anyone know how to convert an Excel date to a correct Unix timestamp?

C# GemBox Excel Import Error

I am trying to import an excel file into a data table using GemBox and I keep getting this error: Invalid data value when extracting to DataTable at SourceRowIndex: 1, and SourceColumnIndex: 1. As ...

Importing from excel "applications" using SSIS

I am looking for any tips or resources on importing from excel into a SQL database, but specifically when the information is NOT in column and row format. I am currently doing some pre-development ...

热门标签