Returns a record after renaming specified fields | เปลี่ยนชื่อฟิลด์ที่ระบุใน Record
| อาร์กิวเมนต์ | ชนิด | ค่าเริ่มต้น | คำอธิบาย |
|---|---|---|---|
| record | record | The input record to modify | |
| renames | list | List of rename pairs where each pair is {OldName, NewName}. For a single rename use {{“OldName”, “NewName”}}, for multiple use {{{“Old1”, “New1”}, {“Old2”, “New2”}}} | |
| [missingField]ไม่บังคับ | nullable number | null | Optional parameter for handling missing fields |
[ ] = อาร์กิวเมนต์ที่ไม่บังคับ
Record.RenameFields renames one or more fields in a Power Query record. Provide a list of rename pairs where each pair contains the old field name and the new field name. You can perform multiple renames in a single operation.
ฟังก์ชัน Record.RenameFields ใช้สำหรับเปลี่ยนชื่อฟิลด์หนึ่งหรือหลายฟิลด์ใน Record โดยระบุคู่การเปลี่ยนชื่อที่มีชื่อเก่าและชื่อใหม่ สามารถเปลี่ยนชื่อหลายฟิลด์พร้อมกันได้ในคำสั่งเดียว เหมาะสำหรับการปรับชื่อฟิลด์ให้เป็นมาตรฐานหรือเข้าใจง่ายขึ้น
Renames the UnitPrice field to Price while keeping all other fields unchanged
Performs multiple renames simultaneously: OrderNum becomes OrderID and UnitPrice becomes Price
Convert generic column names from a data source into meaningful business-friendly field names
ฟังก์ชันที่ผู้เขียนโยงไว้กับ Record.RenameFields จัดกลุ่มตามหมวด · ชี้ที่ชื่อใดชื่อหนึ่ง แล้วฟังก์ชันที่ใช้คู่กันจะมีจุดทอง
Removes specified fields from a record | ลบฟิลด์ที่ระบุออกจาก Record
Record.SelectFields จะคืนค่า Record ใหม่ที่มีเฉพาะ Field ที่ระบุใน List เท่านั้น สามารถจัดการกับ Field ที่หายไปได้ด้วย option missingField
Record.TransformFields แปลงค่าในฟิลด์ที่ระบุของเรคอร์ดโดยใช้ฟังก์ชันแปลงค่า สามารถแปลงฟิลด์เดียวหรือหลายฟิลด์พร้อมกันได้ เหมาะสำหรับการทำความสะอาดข้อมูลและการแปลงประเภทข้อมูล
ยังไม่มีบทความที่เกี่ยวข้องกับฟังก์ชันนี้
Comments
อีเมลของคุณจะไม่ถูกเผยแพร่