Distinct函式會跨資料表記錄評估公式,並以已移除的重復資料傳回一欄結果的資料表。 欄名稱為Value。 目前處理中的記錄其各個欄位可供您在公式內使用。 使用ThisRecord運算子,,或只需依名稱參照欄位,就像任何其他的值一樣。As運算子也可以用來命名所處理的記錄,這有助於讓您的公式更易於了解並讓嵌套記錄可以存取...
Use theEdit fieldslink in the data table's properties pane to add theValuecolumn: Insert aLabelcontrol, and set itsTextproperty to the formula: Power Fx First( Sort( Distinct( CityPopulations, Country ), Value ) ).Value This formula sorts the results fromDistinctwith theSortfunction, takes ...
First( Sort( Distinct( CityPopulations, Country ), Value ) ).Value This formula sorts the results from Distinct with the Sort function, takes the first record from the resulting table with the First function, and extracts the Result field to obtain just the country/region name.Feed...
Distinct函数对一个表的每个记录计算一个公式,并返回结果的单列表,其中删除了重复值。 列的名称为Value。 当前正在处理的记录的字段在公式中可用。 可以使用ThisRecord运算符,也可以只按名称引用字段,就像引用任何其他值一样。As运算符也可用于为正在处理的记录命名,从而使您的公式更易于理解,并且使嵌套记录可以被访问...
Use theEdit fieldslink in the data table's properties pane to add theValuecolumn: Insert aLabelcontrol, and set itsTextproperty to the formula: Power Fx First( Sort( Distinct( CityPopulations, Country ), Value ) ).Value This formula sorts the results fromDistinctwith theSortfunction, takes ...