【问题标题】:How can I get the last value of a column in my dataset in power bi?如何在 power bi 中获取数据集中列的最后一个值?
【发布时间】:2020-08-16 21:29:55
【问题描述】:

在给定的表中如何获取数据集中特定列的最后一个值

Roll No Name Index  Score
1       ab1    1    23
2       ab2    2    43
3       ab3    3    42

在这里我们必须选择 Last Row Score 值吗?

【问题讨论】:

    标签: powerbi powerbi-desktop powerbi-datasource power-bi-report-server powerbi-custom-visuals


    【解决方案1】:

    1) 我们首先要在表中创建一个自定义索引列

    2) 那么我们要使用下面的公式来得到最后一个Row Score值Score值

    CALCULATE(LASTNONBLANK(Table[Score], 1), FILTER(ALL(Table), Table[Index] = MAX(Table[Index])))
    

    结果将是 42。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-09-22
      • 1970-01-01
      • 2016-06-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多