代码之家  ›  专栏  ›  技术社区  ›  Anushka A

Powerquery-当一个值要与另一行的另一个值进行比较时,如何从一列中选择较低的值

  •  -1
  • Anushka A  · 技术社区  · 2 年前


    你好我有下表。

    enter image description here

    我想要一个输出,将总价列中的数字与类似的索引号进行比较,并返回最低的数字。因此,对于上表,预期产出为;

    索引|总价|
    ------ |-------------|
    2 nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp 40664.95|
    ------ |-------------|
    9 nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp 29706.29&nbsp|
    ------ |-------------|
    25 nbsp;nbsp;nbsp;nbsp;nbsp;nbsp 1076.36&nbsp|
    ------ |-------------|
    32 nbsp;nbsp;nbsp;nbsp;nbsp;nbsp 4122.49&nbsp|
    ------ |-------------|
    39 nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp 2759.07;nbsp|

    等等
    1 回复  |  直到 2 年前
        1
  •  0
  •   Ron Rosenfeld    2 年前

    仅使用GroupBy Index并使用Min进行操作:

    enter image description here