[英]Using Filter on measures in MDX query on SSRS
i've creted a report using a cube as datasource and MDX query on my dataset. 我使用多维数据集作为数据源和我的数据集上的MDX查询创建了一个报告。 i have a few measures in my dataset but i want to show wonly the rows with at least one of the measures > 0, using something like an OR filter (measure1 >0 or measure 2 >0 ..etc) how can i do this?
我在我的数据集中有一些度量,但我想显示至少有一个度量> 0的行,使用像OR过滤器(measure1> 0或度量2> 0 ..etc)这样做我怎么能这样做?
thanks 谢谢
Use the Filter()
clause to constrain the memberset for the rows: 使用
Filter()
子句约束行的memberset:
SELECT
[Measures].[Internet Sales Amount] ON COLUMNS,
Filter(
[Customer].[Country].Members,
([Measures].[Internet Sales Amount] > 2000000)
AND ([Measures].[Internet Sales Amount] < 5000000)
) ON ROWS
FROM [Adventure Works];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.