如何确定某列的前 N 个值的记录?
How can I determine the records with the top N values of a column?
我有一个 table,其中有一个名为 "Count" 的数字列,我想确定该列中具有前 10 个值的记录。我尝试使用 List.MaxN([Count],10)
但它会引发错误:
Expression.Error: We cannot convert the value 0 to type list.
Details:
Value = 0
Type = Type
我也试过Table.MaxN(_,[Count],10)
但出现错误。
我哪里做错了,我怎样才能得到该列的前 10 个值?
您需要包含 table 姓名,例如
= List.MaxN(MyTable[Count],10)
我有一个 table,其中有一个名为 "Count" 的数字列,我想确定该列中具有前 10 个值的记录。我尝试使用 List.MaxN([Count],10)
但它会引发错误:
Expression.Error: We cannot convert the value 0 to type list.
Details:
Value = 0
Type = Type
我也试过Table.MaxN(_,[Count],10)
但出现错误。
我哪里做错了,我怎样才能得到该列的前 10 个值?
您需要包含 table 姓名,例如
= List.MaxN(MyTable[Count],10)