ssas - 按 dax 中的度量过滤
问题描述
请帮忙,我该如何重写这个 dax 度量?这工作非常缓慢。我需要计算一个度量 - [mValue 2 period] 并按另一个度量过滤。
mNew launches Value:=
CALCULATE(
[mValue 2 period],
FILTER('UniqueSKUs', [mValue 1 period] = 0))
MEASURE [mValue 1 period] = CALCULATE(
[mValue],
ALL('Date 2 Period'[Year]),
ALL('Date 2 Period'[MonthName]),
ALL('Date 2 Period'[YearMonthName])
)
MEASURE Facts[mValue 2 period] = CALCULATE(
'Facts'[mValue],
ALL('Date'[Year]),
ALL('Date'[MonthName]),
ALL('Date'[YearMonthName])
)
MEASURE [mValue] = ROUND(SUM([Amount]),0)
方案 SSAS Tabulal Cube 的一部分: 图像
解决方案
推荐阅读
- istio - Istio 中的网络策略
- asp.net-core - ASP.NET Core Web API 中的模型
- redhat - ActiveMQ Artemis JMS 共享订阅
- python - 对来自 Websocket 流式传输的 VOIP 的实时音频使用 WebRTC 语音活动检测器 (VAD)
- python - 如何索引和切片多索引熊猫数据框
- reactjs - React JS 创建百分比图表
- json - 用于从 github 推送有效负载中获取名称的正则表达式
- javascript - 使用 wp_localize_script 将用户 ID 传递给 JavaScript 是否安全?
- swift - 如何在 Swift 中居中对齐 Firebase 预构建的登录 UI 文本
- mongodb-query - 与 $or 子查询一起使用时,MongoDB 聚合 $geoNear 函数非常慢