Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/excel/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Excel 如何将当前日期值传递到底部计数_Excel_Filter_Ssas_Mdx - Fatal编程技术网

Excel 如何将当前日期值传递到底部计数

Excel 如何将当前日期值传递到底部计数,excel,filter,ssas,mdx,Excel,Filter,Ssas,Mdx,我尝试使用底部计数,为选定日期获取性能最差的产品组。我的目标是返回金额,而不是维度名称。但是查询返回的是基于多维数据集中默认日期的底部计数,而不是select查询。有没有办法将当前日期传递到bottomcount?下面是我使用的示例查询: with member worst as ([Measures].[Amount]) set worstgrp as BOTTOMCOUNT([Product].[Product].Members ,1 , [Measures].[worst]) memb

我尝试使用底部计数,为选定日期获取性能最差的产品组。我的目标是返回金额,而不是维度名称。但是查询返回的是基于多维数据集中默认日期的底部计数,而不是select查询。有没有办法将当前日期传递到bottomcount?下面是我使用的示例查询:

with
member worst as
([Measures].[Amount])

set worstgrp as
BOTTOMCOUNT([Product].[Product].Members ,1 , [Measures].[worst])

member worstamount as
sum([worstgrp],[Measures].[Amount])

select
{[worstamount]} on 0,
([date].[date].[month-day].[18 Jul 2014]) on 1

from
[Full Details]

我们可以选择多个日期。确切地说,我正在尝试在多维数据集中创建一个计算成员,并使用该多维数据集使用InfG excel生成一个临时报告。所以我想我们不能在where子句中输入日期,而只能在select子句中输入日期。

只需按如下方式定义您的集合:

set worstgrp as BOTTOMCOUNT([Product].[Product].Members ,1 ,
                            sum(EXISTING [date].[date].Members, [Measures].[worst]))