PowerBI DAX filter 过滤

需求:在projectID为4的基础上查找最新的一天,从而计算duration的总和

test result for latest date = FORMAT(
CALCULATE(SUM('table'[duration]), 
FILTER(
    ALLSELECTED('table'),
    'table'[date] =
    MAXX(
        filter(
            ALLSELECTED('table'),'table'[projectID] = 4
        ),
        'table'[date]
    )
)
),"Long Time")

你可能感兴趣的:(PowerBI DAX filter 过滤)