Ssas MDX结果在Power Pivot中出类拔萃

Ssas MDX结果在Power Pivot中出类拔萃,ssas,mdx,powerpivot,Ssas,Mdx,Powerpivot,我不知道MDX的ABCD。我的前任交给我这个问题,一年只需要一次!一年中的那个时候正好是现在!查询将运行并返回结果。但是,我无法从SSAS结果窗口复制结果以及行和列名 通过谷歌搜索,我找到了链接服务器的选项,使用SSIS包和PowerPivot设置查询选项以将结果保存为csv等 由于数据库的限制,前两个是不可能的。我需要通过一系列的公司障碍来获得必要的许可 SSIS包和Power Pivot-存在相同的问题。”BUD'是一个命名集,它在下面的select语句的筛选器中引用。在OLEDB源中键入两

我不知道MDX的ABCD。我的前任交给我这个问题,一年只需要一次!一年中的那个时候正好是现在!查询将运行并返回结果。但是,我无法从SSAS结果窗口复制结果以及行和列名

通过谷歌搜索,我找到了链接服务器的选项,使用SSIS包和PowerPivot设置查询选项以将结果保存为csv等

由于数据库的限制,前两个是不可能的。我需要通过一系列的公司障碍来获得必要的许可

SSIS包和Power Pivot-存在相同的问题。”BUD'是一个命名集,它在下面的select语句的筛选器中引用。在OLEDB源中键入两个SSI时都会引发错误-找不到维度[BUD]

使用PowerPivot时,我分别执行了SETCREATE语句,然后仅将代码粘贴在“with”之后。错误为-找不到维度[BUD]

关于如何在Power Pivot或SSI的select语句中引用BUD,有什么帮助吗?我正在使用sqlsever2008r2

这就是程序-


蓓蕾需要分开吗?你就不能用这个吗

with 
set [BUD] AS
nonemptycrossjoin(

    {[Market].[Markets].&[Europe].children,[Market].[Markets].[Part of World].&[Africa].children},
    [Product].[PL].&[CD] : [Product].[PL].&[KZ],
    [Plant].[Plant].children
)
member measures.callsCY1 as
/* Lot of measure calutaions here */

select 
non empty
{
[Measures].[Qty Sold],
callsCY1,costCY1,MTRLcostCY1,LabourCostCY1,
SCR_C,callsRY1,costRY1,MTRLcostRY1,LabourCostRY1,
callsCY2,costCY2,MTRLcostCY2,LabourCostCY2,
callsRY2,costRY2,MTRLcostRY2,LabourCostRY2,
callsCY3,costCY3,MTRLcostCY3,LabourCostCY3,
callsRY3,costRY3,MTRLcostRY3,LabourCostRY3
}
*
{[Report Period].[Report Periods].[Quarter].&[2013-01-01T00:00:00] : [Report Period].[Report Periods].[Quarter].&[2014-06-01T00:00:00]}
on 0,
non empty
filter(
bud, [Measures].[Qty Sold] <> 0 OR [Measures].[QTY Service Calls] <> 0)
on 1
from [db1]

谢谢你的回复。该语句在SSM上完美执行。在PowerPivot中运行查询时,我遇到以下错误-数据溢出转换为表“query”列“MeasuresSCR_CReport period报告PeriodsQuarter2014-04-01T000000”的数据类型。当前操作已取消,因为事务中的另一个操作失败。这是什么意思?我是否应该更改Excel中的任何默认设置?@SKa表示歉意,但我目前对PowerPivot一无所知。克里斯·韦伯是这一领域的领导者,也许他的博客里有一个答案:。如果查询在SSMS中执行,但PP端出现错误,那么我认为您认为问题出在Excel端的假设可能是正确的。
with 
set [BUD] AS
nonemptycrossjoin(

    {[Market].[Markets].&[Europe].children,[Market].[Markets].[Part of World].&[Africa].children},
    [Product].[PL].&[CD] : [Product].[PL].&[KZ],
    [Plant].[Plant].children
)
member measures.callsCY1 as
/* Lot of measure calutaions here */

select 
non empty
{
[Measures].[Qty Sold],
callsCY1,costCY1,MTRLcostCY1,LabourCostCY1,
SCR_C,callsRY1,costRY1,MTRLcostRY1,LabourCostRY1,
callsCY2,costCY2,MTRLcostCY2,LabourCostCY2,
callsRY2,costRY2,MTRLcostRY2,LabourCostRY2,
callsCY3,costCY3,MTRLcostCY3,LabourCostCY3,
callsRY3,costRY3,MTRLcostRY3,LabourCostRY3
}
*
{[Report Period].[Report Periods].[Quarter].&[2013-01-01T00:00:00] : [Report Period].[Report Periods].[Quarter].&[2014-06-01T00:00:00]}
on 0,
non empty
filter(
bud, [Measures].[Qty Sold] <> 0 OR [Measures].[QTY Service Calls] <> 0)
on 1
from [db1]