Thep Excel

Function Explainer

ฟังก์ชัน Power Query 638 ฟังก์ชัน

638 ฟังก์ชัน

เรียงตาม

ฟังก์ชัน ใช้ทำอะไร มีตั้งแต่ นิยม ยาก ประโยชน์
Splitter.SplitTextByAnyDelimiter Splitter functions splitter_splittextbyanydelimiter(value as any) as any

Splitter.SplitTextByAnyDelimiter ใช้สำหรับการประมวลผล

นิยม 5 ยาก 4 ประโยชน์ 5

5 4 5
Number.BitwiseShiftLeft Number functions number.bitwiseshiftleft(value as any) as any

Number.BitwiseShiftLeft ประมวลผลข้อมูลและคืนค่าผลลัพธ์ ใช้สำหรับการจัดการข้อมูล การแปลงข้อมูล และการวิเคราะห์

นิยม 5 ยาก 3 ประโยชน์ 5

5 3 5
Decimal.From Number functions Decimal.From(value as any, optional culture as nullable text) as nullable number

Decimal.From แปลงค่าต่างๆ เช่น ตัวเลข (number) ข้อความ (text) ค่า boolean เป็นประเภทข้อมูล decimal ประเภท decimal มีความเที่ยงตรงสูงกว่า number ใช้สำหรับการคำนวณทางการเงิน การเก็บข้อมูลที่ต้องการความถูกต้องของทศนิยม และการประมวลผลข้อมูลด้านการบัญชี

นิยม 5 ยาก 3 ประโยชน์ 5

5 3 5
Table.AddMatchColumn Table functions Table.AddMatchColumn(table as table, newColumnName as text, tableColumnPairs as list, optional joinKind as JoinKind) as table

Table.AddMatchColumn เพิ่มคอลัมน์ใหม่ที่มีค่าจากการแมตช์แถวในตารางอื่น โดยค้นหาค่าที่ตรงกับคีย์ เหมือน VLOOKUP แต่ทำงานโดยตรงบนตารางทั้งหมด

นิยม 5 ยาก 4 ประโยชน์ 6

5 4 6
Record.AddField Record functions Record.AddField(record as record, fieldName as text, value as any, optional delayed as nullable logical) as record

Adds a new field with a specified name and value to a record | เพิ่มฟิลด์ใหม่พร้อมชื่อและค่าเข้าไปใน Record

นิยม 5 ยาก 4 ประโยชน์ 5

5 4 5
Text.Remove Text functions Text.Remove(text as nullable text, removeChars as any) as nullable text

Text.Remove จะคืนค่าข้อความใหม่ที่ตัดตัวอักษรที่อยู่ใน removeChars ออกไปทั้งหมด เป็นฟังก์ชันตรงข้ามกับ Text.Select

นิยม 5 ยาก 3 ประโยชน์ 5

5 3 5
Table.ConformToPageReader Table functions Table.ConformToPageReader(table as table, shapingFunction as function) as table

Table.ConformToPageReader ปรับโครงสร้างตารางให้เข้ากับกลไก page reader โดยรับฟังก์ชันสำหรับการจัดรูปแบบ เป็นฟังก์ชันภายในของ Power Query ไม่แนะนำให้ใช้ในโค้ดทั่วไป

นิยม 5 ยาก 4 ประโยชน์ 6

5 4 6
Time.Second Time functions time_second(value as any) as any

Time.Second ใช้สำหรับการประมวลผล

นิยม 5 ยาก 2 ประโยชน์ 5

5 2 5
Replacer.ReplaceValue Replacer functions replacer_replacevalue(value as any) as any

Replacer.ReplaceValue ใช้สำหรับการประมวลผล

นิยม 5 ยาก 3 ประโยชน์ 5

5 3 5
List.Split List functions List.Split(list as list) as list

List.Split แบ่งรายการให้เป็นกลุ่มย่อยตามขนาดที่ระบุ ใช้สำหรับการจัดกลุ่มข้อมูล การแบ่งหน้า และการประมวลผลแบทช์

นิยม 5 ยาก 4 ประโยชน์ 5

5 4 5
Table.Buffer Table functions = Table.Buffer(table as table, optional options as nullable record) as table

Table.Buffer บังคับโหลดตารางลงหน่วยความจำและแยกออกจากแหล่งข้อมูลต้นทาง ช่วยป้องกันการ fold และควบคุมเวลาประมวลผล

นิยม 5 ยาก 4 ประโยชน์ 6

5 4 6
Duration.TotalMinutes Duration functions duration.totalminutes(value) as any

Duration.TotalMinutes ใช้สำหรับการประมวลผลข้อมูล

นิยม 5 ยาก 2 ประโยชน์ 5

5 2 5
Date.WeekOfMonth Date functions date.weekofmonth(value) as any

Date.WeekOfMonth ใช้สำหรับการประมวลผลข้อมูล

นิยม 5 ยาก 2 ประโยชน์ 5

5 2 5
Number.Ln Number functions number.ln(value as any) as any

Number.Ln ประมวลผลข้อมูลและคืนค่าผลลัพธ์ ใช้สำหรับการจัดการข้อมูล การแปลงข้อมูล และการวิเคราะห์ข้อมูล

นิยม 5 ยาก 3 ประโยชน์ 5

5 3 5
List.Percentile List functions list.percentile(value as any) as any

List.Percentile คำนวณค่า percentile ของรายการตัวเลข ใช้สำหรับการวิเคราะห์ข้อมูล การหากลุ่มควอร์ไทล์ และการประเมินการกระจายตัวของข้อมูล

นิยม 5 ยาก 4 ประโยชน์ 5

5 4 5
Date.AddWeeks Date functions Date.AddWeeks(dateTime as any, numberOfWeeks as number) as any

Date.AddWeeks เพิ่มจำนวนสัปดาห์ (สัปดาห์ = 7 วัน) ให้กับค่า date, datetime หรือ datetimezone ที่กำหนด เหมาะสำหรับการคำนวณตามรอบเวลาประจำสัปดาห์

นิยม 5 ยาก 3 ประโยชน์ 6

5 3 6
Occurrence.Type enumerations Text.PositionOf(text, substring, Occurrence.First|Last) / Text.PositionOfAny(text, characters, Occurrence.All)

Occurrence.Type เป็นชุดค่าคงที่ที่ใช้ระบุการเกิดซ้ำของค่าที่ค้นพบ เช่น Occurrence.First (ครั้งแรก), Occurrence.Last (ครั้งสุดท้าย) และ Occurrence.All (ทุกตำแหน่ง) โดยมักใช้เป็นพารามิเตอร์ occurrence ในฟังก์ชันอย่าง Text.PositionOf และ Text.PositionOfAny

นิยม 5 ยาก 2 ประโยชน์ 5

5 2 5
Character.ToNumber Text functions Character.ToNumber(character as nullable text) as nullable number

Character.ToNumber ใช้สำหรับแปลงอักขระเป็นรหัส Unicode ที่สอดคล้องกัน โดยการคำนวณรหัส Unicode 21-bit เป็นประโยชน์สำหรับการเปรียบเทียบ ตรวจสอบ และวิเคราะห์อักขระ

นิยม 5 ยาก 3 ประโยชน์ 5

5 3 5
List.Single List functions List.Single(list as list) as any

คืนค่าสมาชิกตัวเดียวใน List (ถ้ามีมากกว่า 1 จะ Error)

นิยม 5 ยาก 4 ประโยชน์ 5

5 4 5
Value.NativeQuery Value functions Value.NativeQuery(target as any, query as text, optional parameters as any, optional options as nullable record) as any

Value.NativeQuery ใช้รันคำสั่ง SQL โดยตรงกับฐานข้อมูล เช่น SQL Server, PostgreSQL, BigQuery โดยสามารถส่ง parameters และเปิด Query Folding ได้

นิยม 5 ยาก 7 ประโยชน์ 6

5 7 6
List.Reverse List functions List.Reverse(list as list) as list

List.Reverse จะคืน List ใหม่ที่สมาชิกทั้งหมดเรียงลำดับแบบกลับกันจาก List ต้นฉบับ โดยที่สมาชิกแต่ละตัวจะยังคงเดิม แต่ตำแหน่งจะเปลี่ยนไป

นิยม 4 ยาก 2 ประโยชน์ 4

4 2 4
Replacer.ReplaceText Replacer functions replacer_replacetext(value as any) as any

Replacer.ReplaceText ใช้สำหรับการประมวลผล

นิยม 4 ยาก 3 ประโยชน์ 4

4 3 4
Text.Repeat Text functions Text.Repeat(text as nullable text, count as number) as nullable text

ทำซ้ำข้อความตามจำนวนครั้งที่ระบุ

นิยม 4 ยาก 2 ประโยชน์ 4

4 2 4
Number.Sqrt Number functions Number.Sqrt(number as nullable number) as nullable number

หารากที่สอง (Square Root)

นิยม 4 ยาก 3 ประโยชน์ 4

4 3 4
Number.IsOdd Number functions number.isodd(value as any) as any

Number.IsOdd ประมวลผลข้อมูลและคืนค่าผลลัพธ์ ใช้สำหรับการจัดการข้อมูล การแปลงข้อมูล และการวิเคราะห์ข้อมูล

นิยม 4 ยาก 2 ประโยชน์ 4

4 2 4
Date.AddQuarters Date functions Date.AddQuarters(dateTime as any, numberOfQuarters as number) as any

Date.AddQuarters เพิ่มจำนวนไตรมาส (ไตรมาส = 3 เดือน) ให้กับค่า date datetime หรือ datetimezone ที่กำหนด คืนค่าเดียวกันกับประเภทข้อมูลอินพุต ฟังก์ชันนี้มีประโยชน์สำหรับการวิเคราะห์ข้อมูลทางการเงินตามไตรมาส และการวางแผนการจัดการเชิงกลยุทธ์

นิยม 4 ยาก 3 ประโยชน์ 5

4 3 5
Binary.Length Binary functions Binary.Length(binary as nullable binary) as nullable number

Binary.Length ตรวจสอบและคืนค่าจำนวน Bytes ในค่า Binary เป็นตัวเลข เช่น Binary ที่มี 5 Bytes จะคืนค่า 5

นิยม 4 ยาก 3 ประโยชน์ 4

4 3 4
List.AllTrue List functions List.AllTrue(list as list) as logical

List.AllTrue คืนค่า true หากทุกเงื่อนไขใน List เป็นจริงทั้งหมด

นิยม 4 ยาก 3 ประโยชน์ 4

4 3 4
Table.Partition Table functions Table.Partition(table as table, column as text, groups as number, hash as function) as list

แบ่งตารางออกเป็นรายการของตารางย่อย (List of Tables) โดยใช้ hash function กำหนดการกระจายข้อมูล

นิยม 4 ยาก 6 ประโยชน์ 5

4 6 5
List.Durations List functions List.Durations(start as duration, count as number, step as duration) as list

List.Durations คืน List ของค่า Duration โดยเริ่มจากค่าเริ่มต้น เพิ่มทีละช่วงเวลา (duration) ตามจำนวนครั้งที่ระบุ

นิยม 4 ยาก 3 ประโยชน์ 4

4 3 4
List.ReplaceRange List functions List.Replacerange(list as list) as list

List.ReplaceRange แทนที่รายการในช่วงที่ระบุด้วยรายการใหม่ ใช้สำหรับการแก้ไขข้อมูล การจัดการรายการ และการอัปเดตข้อมูล

นิยม 4 ยาก 4 ประโยชน์ 4

4 4 4
AzureStorage.Tables Accessing data functions azurestorage_tables(value as any) as any

AzureStorage.Tables ดึงข้อมูลจากตารางใน Azure Table Storage ซึ่งเป็นบริการจัดเก็บข้อมูลแบบ NoSQL

นิยม 4 ยาก 5 ประโยชน์ 4

4 5 4
Binary.Combine Binary functions Binary.Combine(binaries as list) as binary

Binary.Combine รับรายการค่า Binary หลายตัวและรวมเข้าเป็นค่า Binary ตัวเดียว ลำดับของ Bytes ในผลลัพธ์จะตามลำดับของรายการที่ส่งเข้ามา

นิยม 4 ยาก 4 ประโยชน์ 4

4 4 4
Table.StopFolding Table functions = Table.StopFolding(table)

Table.StopFolding ป้องกันไม่ให้ขั้นตอน downstream ถูกส่งกลับไปประมวลผลที่ data source เดิม ช่วยเมื่อต้องดีบักหรือเมื่อการบังคับประมวลผลใน Power Query ให้ผลลัพธ์ที่คาดหวัง

นิยม 4 ยาก 6 ประโยชน์ 5

4 6 5
Value.Metadata Value functions value_metadata(value as any) as any

Value.Metadata ใช้สำหรับการประมวลผล

นิยม 4 ยาก 6 ประโยชน์ 4

4 6 4
Type.ForRecord Type functions type_forrecord(value as any) as any

Type.ForRecord ใช้สำหรับการประมวลผล

นิยม 4 ยาก 6 ประโยชน์ 4

4 6 4
DeltaLake.Table Accessing data functions DeltaLake.Table(directory as table, [options as nullable record]) as any

DeltaLake.Table ใช้ดึงข้อมูลจากตาราง Delta Lake โดยระบุที่อยู่ไดเรกทอรี่ของตาราง เหมาะสำหรับเชื่อมต่อกับ Data Lake หรือ Microsoft Fabric

นิยม 4 ยาก 5 ประโยชน์ 5

4 5 5
Date.IsLeapYear Date functions date.isleapyear(value as any) as any

Date.IsLeapYear ประมวลผลข้อมูลและคืนค่าผลลัพธ์ ใช้สำหรับการจัดการข้อมูล การแปลงข้อมูล และการวิเคราะห์

นิยม 4 ยาก 2 ประโยชน์ 4

4 2 4
Record.ReorderFields Record functions Record.ReorderFields(record as record, fieldOrder as list, optional missingField as nullable number) as record

Rearranges the order of fields in a record | จัดเรียงลำดับฟิลด์ใหม่ใน Record ตามที่ต้องการ

นิยม 4 ยาก 4 ประโยชน์ 4

4 4 4
Uri.Parts Uri functions uri_parts(value as any) as any

Uri.Parts ใช้สำหรับการประมวลผล

นิยม 4 ยาก 3 ประโยชน์ 4

4 3 4
Progress.DataSourceProgress Splitter functions progress_datasource(value as any) as any

Progress.DataSourceProgress ใช้สำหรับการประมวลผล

นิยม 4 ยาก 3 ประโยชน์ 4

4 3 4
List.ReplaceMatchingItems List functions List.Replacematchingitems(list as list) as list

List.ReplaceMatchingItems แทนที่รายการที่ตรงกับเงื่อนไขด้วยค่าใหม่ ใช้สำหรับการแปลงข้อมูล การแทนที่มูลค่า และการทำความสะอาดข้อมูล

นิยม 4 ยาก 4 ประโยชน์ 4

4 4 4
RoundingMode.Type enumerations

ระบุทิศทางการปัดเศษเมื่อค่าอยู่กึ่งกลาง

นิยม 4 ยาก 2 ประโยชน์ 4

4 2 4
Text.NewGuid Text functions Text.NewGuid() as text

Text.NewGuid ใช้สำหรับสร้าง GUID (Globally Unique Identifier) ใหม่ที่เป็นเอกลักษณ์ แต่ละครั้งที่เรียกจะสร้าง GUID ที่แตกต่างกัน ใช้สำหรับสร้างรหัสเฉพาะตัวที่ไม่ซ้ำ

นิยม 4 ยาก 2 ประโยชน์ 4

4 2 4
Type.RecordFields Type functions type_recordfields(value as any) as any

Type.RecordFields ใช้สำหรับการประมวลผล

นิยม 4 ยาก 5 ประโยชน์ 4

4 5 4
Date.IsInPreviousMonth Date functions date_isinpreviousmonth(value as any) as any

Date.IsInPreviousMonth ตรวจสอบว่าวันที่นั้นตรงกับเดือนก่อนหน้าหรือไม่

นิยม 4 ยาก 2 ประโยชน์ 4

4 2 4
AzureStorage.DataLakeContents Accessing data functions azurestorage_datalakecontents(value as any) as any

AzureStorage.DataLakeContents อ่านเนื้อหาของไฟล์จากระบบไฟล์ Azure Data Lake

นิยม 4 ยาก 5 ประโยชน์ 4

4 5 4
Number.IsEven Number functions number.iseven(value as any) as any

Number.IsEven ประมวลผลข้อมูลและคืนค่าผลลัพธ์ ใช้สำหรับการจัดการข้อมูล การแปลงข้อมูล และการวิเคราะห์ข้อมูล

นิยม 4 ยาก 2 ประโยชน์ 4

4 2 4
Record.FieldOrDefault Record functions Record.FieldOrDefault(record as record, field as text, optional defaultValue as any) as any

ดึงค่าจาก Record ถ้าไม่เจอให้คืนค่า Default

นิยม 4 ยาก 4 ประโยชน์ 4

4 4 4
Date.IsInYearToDate Date functions date.isinyeartodate(value as any) as any

Date.IsInYearToDate ประมวลผลข้อมูลและคืนค่าผลลัพธ์ ใช้สำหรับการจัดการข้อมูล การแปลงข้อมูล และการวิเคราะห์

นิยม 4 ยาก 2 ประโยชน์ 4

4 2 4