select 从单行 table 获取值的最快方法
Fastest way to select a value from a single row table
我有一个名为 TableX 的断开连接的 table,它有两列和一行数据:
Date | Amount
4-Jan | 10.5
永远只有1行数据。
它所属的模型很大,10.5的数量将在措施中广泛使用。
要从此 table 中提取 10.5,我使用了以下内容:
AmountValue := MIN(TableX[Amount])
MIN
是提取此值的最快方法吗?
此处从 DaxStudio(5 冷 + 5 热缓存执行)测试断开连接 table 仅包含一行,如您的示例所示:
DEFINE
MEASURE 'TableX'[AmountValue3] = ALL(TableX[Amount])
evaluate
{[AmountValue2]}
DEFINE
MEASURE 'TableX'[AmountValue2] = Values(TableX[Amount])
evaluate
{[AmountValue2]}
DEFINE
MEASURE 'TableX'[AmountValue] = min(TableX[Amount])
evaluate
{[AmountValue]}
我有一个名为 TableX 的断开连接的 table,它有两列和一行数据:
Date | Amount
4-Jan | 10.5
永远只有1行数据。 它所属的模型很大,10.5的数量将在措施中广泛使用。
要从此 table 中提取 10.5,我使用了以下内容:
AmountValue := MIN(TableX[Amount])
MIN
是提取此值的最快方法吗?
此处从 DaxStudio(5 冷 + 5 热缓存执行)测试断开连接 table 仅包含一行,如您的示例所示:
DEFINE
MEASURE 'TableX'[AmountValue3] = ALL(TableX[Amount])
evaluate
{[AmountValue2]}
DEFINE
MEASURE 'TableX'[AmountValue2] = Values(TableX[Amount])
evaluate
{[AmountValue2]}
DEFINE
MEASURE 'TableX'[AmountValue] = min(TableX[Amount])
evaluate
{[AmountValue]}