Table.FromValue
Syntax
Table.FromValue(value as any, optional options as nullable record) as table
About
Creates a table with a column containing the provided value or list of values, value
. An optional record parameter, options
, may be specified to control the following options:
DefaultColumnName
: The column name used when constructing a table from a list or scalar value.
Example 1
Create a table from the value 1.
Usage
Table.FromValue(1)
Output
Table.FromRecords({[Value = 1]})
Example 2
Create a table from the list.
Usage
Table.FromValue({1, "Bob", "123-4567"})
Output
Table.FromRecords({
[Value = 1],
[Value = "Bob"],
[Value = "123-4567"]
})
Example 3
Create a table from the value 1, with a custom column name.
Usage
Table.FromValue(1, [DefaultColumnName = "MyValue"])
Output
Table.FromRecords({[MyValue = 1]})
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho