Select DAX、Power BI 中的非零行

Select non zero rows in DAX, power BI

我有一个数据

e_code 小时
223 4.5
443 0
5543 33.6
098 2
44 0
21143 6.6
266743

我想通过编写一个非零小时的 dax 代码并将空白

排除在外,将那些 e_code 存储在 power bi 的新列中
e_code
223
5543
098
21143

请帮助我获得我想要的输出

Table = GROUPBY ( FILTER ( '_t', '_t'[hours] <> BLANK () ), _t[e_code] )

使用这个公式:

Table =
CALCULATETABLE ( 
    SELECTCOLUMNS (
        'yourTableName', 
        "e_code", 
        'yourTableName'[e_code]
    ),
    'yourTableName'[hours] > 0
)