Thep Excel

Record.ToTableแปลง Record เป็น Table

Converts a record into a table with Name and Value columns | แปลง Record เป็นตารางที่มีคอลัมน์ Name และ Value สำหรับวิเคราะห์ข้อมูล

fx
=Record.ToTable(record) as table

ความนิยม5/10
ความยาก3/10
ประโยชน์5/10

อัปเดต 3 December 2025

Syntax & Arguments

อาร์กิวเมนต์ ชนิด คำอธิบาย
record record Record

Additional Notes

Record.ToTable converts a Power Query record into a table with Name and Value columns. Each field in the record becomes a row with the field name and its corresponding value.

ฟังก์ชัน Record.ToTable ใช้สำหรับแปลง Record เป็นตารางที่มีคอลัมน์ Name และ Value โดยแต่ละฟิลด์ใน Record จะกลายเป็นแถวที่มีชื่อฟิลด์และค่าที่สอดคล้องกัน เหมาะสำหรับการวิเคราะห์ข้อมูลแบบแถวหรือการแปลงข้อมูลเป็นรูปแบบ key-value pairs

Examples

Convert a simple order record to a tableRecord.ToTable([OrderID = 1, CustomerID = 1, Item = "Fishing rod", Price = 100.0])

Converts record fields into a two-column table with Name and Value columns

fx
=Record.ToTable([OrderID = 1, CustomerID = 1, Item = "Fishing rod", Price = 100.0])

ผลลัพธ์Table with 4 rows: {[Name="OrderID", Value=1], [Name="CustomerID", Value=1], [Name="Item", Value="Fishing rod"], [Name="Price", Value=100.0]}
Transform product information for analysislet Product = [SKU = "ABC123", Category = "Electronics", InStock = true, Rating = 4.5], ProductTable = Record.ToTable(Product) in ProductTable

Convert product metadata from record format into tabular format for further analysis

fx
let
Product = [SKU = "ABC123", Category = "Electronics", InStock = true, Rating = 4.5],
ProductTable = Record.ToTable(Product)
in
ProductTable

ผลลัพธ์Table with 4 rows showing each attribute as a separate row with Name and Value
Pivot configuration settings to tableRecord.ToTable([AppName = "Dashboard", Version = "2.1", Enabled = true, Timeout = 30])

Transform application configuration from key-value pairs into a structured table format

fx
=Record.ToTable([AppName = "Dashboard", Version = "2.1", Enabled = true, Timeout = 30])

ผลลัพธ์Table with 4 rows: [Name="AppName", Value="Dashboard"], [Name="Version", Value="2.1"], [Name="Enabled", Value=true], [Name="Timeout", Value=30]

Resources & Related

ฟังก์ชันที่ผู้เขียนโยงไว้กับ Record.ToTable จัดกลุ่มตามหมวด · ชี้ที่ชื่อใดชื่อหนึ่ง แล้วฟังก์ชันที่ใช้คู่กันจะมีจุดทอง

ฟังก์ชันนี้Record.ToTableRecord functions
Record functions (2)
Record.FromTable

Returns a record from a table containing field names and corresponding values | แปลงตารางที่มีชื่อฟิลด์และค่าเป็น Record

Record.ToList

แปลง Record เป็น List ของค่าข้อมูล

Comments

อีเมลของคุณจะไม่ถูกเผยแพร่