如何在 power bi 中获取数据集中一列的最后一个值?
How can I get the last value of a column in my dataset in power bi?
在给定的table中如何获取数据集中特定列的最后一个值
Roll No Name Index Score
1 ab1 1 23
2 ab2 2 43
3 ab3 3 42
这里要选Last Row Score值?
1) 首先我们要在table
中创建自定义索引列
2) 然后我们必须使用下面的公式来得到最后的 Row Score 值 Score value
CALCULATE(LASTNONBLANK(Table[Score], 1), FILTER(ALL(Table), Table[Index] = MAX(Table[Index])))
结果为 42。
在给定的table中如何获取数据集中特定列的最后一个值
Roll No Name Index Score
1 ab1 1 23
2 ab2 2 43
3 ab3 3 42
这里要选Last Row Score值?
1) 首先我们要在table
中创建自定义索引列2) 然后我们必须使用下面的公式来得到最后的 Row Score 值 Score value
CALCULATE(LASTNONBLANK(Table[Score], 1), FILTER(ALL(Table), Table[Index] = MAX(Table[Index])))
结果为 42。