在 Power BI 中使用 DAX 创建一个新的 Table

Create a New Table with DAX in Power BI

假设我在 power bi 中有一个名为 TABLE_1 的 table,它看起来像这样:

Category        Color
electronic      yellow
automobile      Red
food product    green
educational     black

如何使用 DAX 语句创建此 table 的精确副本?

我是 DAX 新手

最简单的方法是使用 ALL 函数:

Table_2 = ALL(Table_1) 

如果需要复制一个table并过滤掉一些记录:

Table_2 = CALCULATETABLE( Table_1, Table_1[Color] in {"green", "black"})