Table.SplitColumn
使用指定的分隔器函數,將指定的資料行分割成一組額外的資料行。
Syntax
Table.SplitColumn(
table as table,
sourceColumn as text,
splitter as function,
optional columnNamesOrNumber as any,
optional default as any,
optional extraColumns as any
) as table
Remarks
使用指定的分隔器函數,將指定的資料行分割成一組額外的資料行。
table: 包含要分割之資料行的表格。sourceColumn: 要分割的資料行的名稱。splitter: 用來分割資料行的分割器函數 (例如Splitter.SplitTextByDelimiter或Splitter.SplitTextByPosition)。columnNamesOrNumber: 要建立的新資料行名稱清單,或新資料行數目。default: 當分割值不足,無法填滿所有新資料行時,會覆寫使用的值。此參數的預設值是null。extraColumns: 指定如果分割值的數量超過新資料行數目時,該執行的動作。您可以將ExtraValues.Type列舉值傳遞給此參數。預設值是ExtraValues.Ignore。