首页 > 解决方案 > 按 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 的一部分: 图像

标签: ssasdaxtabular

解决方案


推荐阅读