首页 > 解决方案 > 带十进制数的 MDX 过滤函数

问题描述

我正在尝试查询一个多维数据集并根据等于十进制的度量值过滤掉维度。但是,当我运行查询时,我似乎可以得到我期望的十进制值。我正在运行的查询如下。

SELECT NON EMPTY {
FILTER (
 VISUALTOTALS({ {[Customer].[Customer Geography].[Country].&[Australia],[Customer].[Customer Geography].[Country].&[Canada],[Customer].[Customer Geography].[Country].&[France],[Customer].[Customer Geography].[Country].&[Germany],[Customer].[Customer Geography].[Country].&[United Kingdom],[Customer].[Customer Geography].[Country].&[United States]} })
,[Measures].[Average Sales Amount] >= 61.6484542253521)
 } dimension properties member_type ON ROWS , 
NON EMPTY {{[Measures].[Average Sales Amount]}} 
dimension properties member_type ON COLUMNS FROM [AdventureWorks].

Format_Value 和 Value 的值略有不同。我应该改为按 format_value 过滤吗?虽然这也不起作用

标签: ssasmdx

解决方案


无需按 Format_Value 过滤,必要时使用 Format_Value 即可。


推荐阅读