ssas - 带十进制数的 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 过滤吗?虽然这也不起作用
解决方案
无需按 Format_Value 过滤,必要时使用 Format_Value 即可。
推荐阅读
- powershell - 写入信息似乎在 powershell foreach-object -parallel 中不起作用
- c - 编写一个解决C中商和余数的函数
- python - Django:将 CSV 文件上传到 AWS S3
- javascript - 如何在网页上执行点击按钮?
- asp.net - 上传的图片在 Chrome 中消失
- r - dplyr 唯一条目的运行计数
- scala - 当 Option 为 None 时返回 Future 失败
- python - 使用 nltk 停用词从 pandas 列中的列表中删除停用词时,删除停用词失败
- python - 通过样本获取特征重要性 - Python Scikit Learn
- vue.js - 如何根据 vue 3 中的路由器历史记录在我的标题中显示和隐藏组件