| ฟังก์ชัน | ใช้ทำอะไร | มีตั้งแต่ | นิยม | ยาก | ประโยชน์ |
|---|---|---|---|---|---|
| Text.Trim Text functions | = Text.Trim(text as nullable text, optional trim as any) as nullable text
Text.Trim ลบอักขระที่ระบุออกจากต้นและท้ายของข้อความ ค่าเริ่มต้นจะลบแค่ช่องว่าง
|
9 | 2 | 9 | |
| Text.Split Text functions | Text.Split(text as text, separator as text) as list
Text.Split(text, separator) ใช้แยกข้อความเป็น List โดยอิงตามตัวคั่น (delimiter) ที่ระบุ สามารถใช้ตัวคั่นเพียงตัวเดียวหรือหลายตัวอักษร เช่น "|" หรือ ", the " ผลลัพธ์คืนค่าเป็น List ของข้อความ
|
8 | 3 | 8 | |
| Text.Lower Text functions | Text.Lower(text as nullable text, optional culture as nullable text) as nullable text
Text.Lower ใช้แปลงอักขระทั้งหมดในข้อความให้เป็นตัวพิมพ์เล็ก (lowercase) ช่วยให้ข้อมูลมีรูปแบบสอดคล้องกัน สามารถกำหนด Culture เพื่อให้การแปลงเป็นไปตามกฎของภาษาและภูมิภาคที่ต้องการ
|
8 | 2 | 8 | |
| Text.Replace Text functions | Text.Replace(text as nullable text, old as text, new as text) as nullable text
Text.Replace ใช้สำหรับแทนที่ทุกส่วนของข้อความเก่าในข้อความหลักด้วยข้อความใหม่ เป็น Case Sensitive และแทนที่ทีละครั้งที่เจอในข้อความทั้งหมด
|
8 | 3 | 8 | |
| Text.Upper Text functions | Text.Upper(text as nullable text, optional culture as nullable text) as nullable text
Text.Upper แปลงอักขระทั้งหมดในข้อความเป็นตัวอักษรใหญ่ โดยรองรับการตั้งค่า culture ต่างๆ เพื่อจัดการการแปลงที่ถูกต้องตามภาษา
|
8 | 2 | 8 | |
| Text.Contains Text functions | Text.Contains(text, substring, comparer)
Text.Contains ใช้สำหรับตรวจสอบว่าข้อความที่กำหนด (text) มีข้อความย่อยที่ต้องการค้นหา (substring) อยู่ภายในหรือไม่ ส่งคืนค่า true หรือ false
|
8 | 3 | 8 | |
| Text.Combine Text functions | Text.Combine(texts as list, optional separator as nullable text) as text
Text.Combine ใช้สำหรับรวมข้อความหลายตัวจาก List เข้าด้วยกันเป็นข้อความเดียว โดยสามารถเลือกใช้ตัวคั่น (separator) เช่น ลูกน้ำ เครื่องหมายขีด หรือ space ได้ เหมาะสำหรับสร้างชื่อเต็ม ที่อยู่ หรือรหัสประจำตัวจากส่วนประกอบย่อยๆ
|
8 | 3 | 8 | |
| Text.Clean Text functions | Text.Clean(text as nullable text) as nullable text
Text.Clean ลบตัวอักษรควบคุมที่ไม่สามารถพิมพ์ได้ (Control Characters) เช่น Line Feed, Tab, Carriage Return ออกจากข้อความ โดยเก็บเฉพาะตัวอักษรที่มองเห็นได้และพิมพ์ได้
|
8 | 2 | 8 | |
| Text.Start Text functions | Text.Start(text as nullable text, count as number) as nullable text
Text.Start ดึงอักขระจำนวนที่กำหนดจากตัวแรกของสตริงข้อความ ใช้สำหรับดึงชื่อย่อ รหัส หรือส่วนแรกของข้อมูล
|
7 | 2 | 7 | |
| Text.Length Text functions | Text.Length(text as nullable text) as nullable number
Text.Length ใช้นับจำนวนตัวอักษรทั้งหมดในสตริงข้อความ รวมถึงช่องว่างและอักขระพิเศษ ผลลัพธ์คืนค่าเป็นตัวเลข มีประโยชน์ในการตรวจสอบคุณภาพข้อมูล การกรองข้อมูลตามความยาว หรือการคำนวณ Logic ต่างๆ
|
7 | 2 | 7 | |
| Text.EndsWith Text functions | Text.EndsWith(text as nullable text, substring as text, optional comparer as nullable function) as nullable logical
Text.EndsWith ตรวจสอบว่าข้อความหลักลงท้ายด้วยข้อความย่อย (substring) ที่กำหนดหรือไม่ คืนค่า true หากตรงกัน และ false หากไม่ตรงกัน สามารถใช้ Comparer เพื่อควบคุม Case Sensitivity
|
7 | 3 | 7 | |
| Text.Proper Text functions | Text.Proper(text as nullable text, optional culture as nullable text) as nullable text
แปลงอักษรตัวแรกของทุกคำเป็นตัวพิมพ์ใหญ่ (Title Case) และส่วนที่เหลือเป็นตัวพิมพ์เล็ก
|
7 | 2 | 7 | |
| Text.StartsWith Text functions | Text.StartsWith(text as nullable text, substring as text, optional comparer as nullable function) as nullable logical
Text.StartsWith ตรวจสอบว่าข้อความหลักขึ้นต้นด้วยข้อความย่อยที่กำหนดหรือไม่ โดยคืนค่า true หรือ false สามารถระบุ Comparer เพื่อเลือกว่าจะให้ตรวจสอบแบบ Case Sensitive (ไว) หรือ Case Insensitive (ไม่ไว) ได้
|
7 | 3 | 7 | |
| Text.End Text functions | Text.End(text as nullable text, count as number) as nullable text
Text.End ใช้สำหรับดึงอักขระจำนวนที่ระบุจากท้ายสตริงข้อความ เป็นประโยชน์สำหรับการดึงนามสกุลไฟล์ และส่วนท้ายของข้อมูล
|
6 | 2 | 6 | |
| Text.AfterDelimiter Text functions | Text.AfterDelimiter(text as text, delimiter as text, optional index as any) as any
ดึงข้อความหลังจากตัวคั่นที่กำหนด สามารถเลือกว่าจะใช้ตัวคั่นที่ 1, 2, 3 เป็นต้น
|
6 | 3 | 6 | |
| Text.From Text functions | Text.From(value as any, optional culture as nullable text) as nullable text
แปลงค่าใดๆ เป็นข้อความ (Text)
|
6 | 2 | 6 | |
| Text.Middle Text functions | Text.Middle(text as nullable text, start as number, optional count as nullable number) as nullable text
Text.Middle ใช้สำหรับดึงข้อความตั้งแต่ตำแหน่งที่ระบุไปจำนวนอักขระที่กำหนด หากไม่ระบุจำนวนตัวอักษร จะดึงจากตำแหน่งเริ่มต้นไปถึงท้าย
|
6 | 3 | 6 | |
| Text.PositionOf Text functions | Text.PositionOf(text as text, substring as text, optional occurrence as nullable number, optional comparer as nullable function) as any
หาตำแหน่งของข้อความย่อยในข้อความหลัก (0-indexed) โดยคืนค่า -1 หากไม่พบ
|
6 | 3 | 6 | |
| Text.BeforeDelimiter Text functions | Text.BeforeDelimiter(text as nullable text, delimiter as text, optional index as any) as any
Text.BeforeDelimiter ดึงข้อความส่วนที่อยู่ก่อนตัวคั่นที่กำหนด พร้อมตัวเลือกระบุตัวคั่นตัวไหน
|
6 | 3 | 6 | |
| Text.At Text functions | Text.At(text as nullable text, index as number) as nullable text
Text.At ใช้สำหรับดึงอักขระตัวเดียวที่ตำแหน่งที่ระบุในข้อความ โดยใช้การนับ zero-based index ที่ตำแหน่ง 0 คือตัวแรก ตำแหน่ง 1 คือตัวที่สอง เป็นต้น
|
5 | 3 | 5 | |
| Text.Select Text functions | Text.Select(text as nullable text, selectChars as any) as nullable text
Text.Select จะคืนค่าข้อความใหม่ที่ประกอบด้วยตัวอักษรที่อยู่ใน selectChars เท่านั้น อักขระใดที่ไม่อยู่ในรายการนี้จะถูกลบออกไป มีประโยชน์มากในการ Clean Data
|
5 | 3 | 5 | |
| Text.SplitAny Text functions | Text.SplitAny(text as text, separators as text) as list
Text.SplitAny ใช้สำหรับแยกข้อความด้วยอักขระใดๆ ในรายการ แตกต่างจาก Text.Split ที่ใช้สตริงตัวคั่นเดียว
|
5 | 3 | 5 | |
| Json.FromValue Text functions | Json.FromValue(value as any, optional encoding as nullable number) as binary
Json.FromValue ใช้สำหรับแปลงค่าใดๆ เป็นข้อความ JSON สามารถแปลง record, list, number, logical, null และข้อความได้
|
5 | 3 | 5 | |
| Text.Insert Text functions | Text.Insert(text as text, offset as number, newText as text) as text
แทรกข้อความเข้าไปในตำแหน่งที่กำหนด
|
5 | 3 | 5 | |
| Guid.From Text functions | Guid.From(value as nullable text) as nullable text
Guid.From ใช้สำหรับแปลงข้อความเป็น GUID ยอมรับรูปแบบ GUID หลายแบบ เช่น ที่มีเครื่องหมายขีด วงเล็บ หรือไม่มี
|
5 | 3 | 5 | |
| Character.ToNumber Text functions | Character.ToNumber(character as nullable text) as nullable number
Character.ToNumber ใช้สำหรับแปลงอักขระเป็นรหัส Unicode ที่สอดคล้องกัน โดยการคำนวณรหัส Unicode 21-bit เป็นประโยชน์สำหรับการเปรียบเทียบ ตรวจสอบ และวิเคราะห์อักขระ
|
5 | 3 | 5 | |
| Text.Range Text functions | Text.Range(text as nullable text, offset as number, optional count as nullable number) as nullable text
Text.Range ใช้สำหรับดึงข้อความตั้งแต่ตำแหน่งที่ระบุไปยังท้ายสตริง หรือจำนวนอักขระที่กำหนด ถ้าจำนวนอักขระไม่พอ ฟังก์ชันจะคืนค่าเท่าที่หาได้
|
5 | 3 | 5 | |
| Character.FromNumber Text functions | Character.FromNumber(number as nullable number) as nullable text
Character.FromNumber ใช้สำหรับสร้างอักขระจากรหัส Unicode ที่กำหนด ฟังก์ชันนี้เป็นส่วนตรงข้ามของ Character.ToNumber และสามารถสร้างอักขระพิเศษ เช่น แท็บ อีโมจิ และสัญลักษณ์อื่นๆ
|
5 | 3 | 5 | |
| Text.PositionOfAny Text functions | Text.PositionOfAny(text as text, characters as list, optional occurrence as nullable number) as any
Text.PositionOfAny ใช้สำหรับค้นหาตำแหน่งแรกของอักขระใดๆ ในรายการที่ระบุ เป็นประโยชน์สำหรับการค้นหาเครื่องหมายพิเศษ สระ หรืออักขระที่ระบุ
|
5 | 3 | 5 | |
| Text.TrimStart Text functions | Text.TrimStart(text as nullable text, optional trimChars as nullable list) as nullable text
Text.TrimStart จะลบช่องว่างหรืออักขระส่วนเกินที่อยู่ด้านซ้ายสุดของข้อความออก สามารถระบุ List ของอักขระที่ต้องการลบได้ ทำให้เป็นเครื่องมือที่มีประโยชน์ในการทำความสะอาดข้อมูลที่ Copy มาแล้วมี Space หรือสัญลักษณ์นำหน้าเกินมา
|
5 | 3 | 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 | |
| Text.TrimEnd Text functions | Text.TrimEnd(text as nullable text, optional trimChars as nullable list) as nullable text
Text.TrimEnd จะลบช่องว่างหรืออักขระส่วนเกินที่อยู่ด้านขวาสุดของข้อความออก สามารถระบุ List ของอักขระที่ต้องการลบได้ เป็นเครื่องมือที่ดีในการทำความสะอาดข้อมูลที่ Copy มาแล้วมี Space หรือสัญลักษณ์ต่อท้ายเกินมา
|
5 | 3 | 5 | |
| Text.Pad Text functions | Text.Pad(text as text, count as number, optional padCharacter as nullable text) as text
Text.Pad เพิ่มอักษรเติมให้ข้อความมีความยาวที่ต้องการ สามารถเพิ่มไปทางด้านซ้าย กลาง หรือขวาของข้อความ ฟังก์ชันนี้มีประโยชน์เมื่อต้องการจัดรูปแบบข้อความให้มีความยาวเท่ากัน เช่นรหัสสินค้า หรือรหัสพนักงาน
|
5 | 3 | 5 | |
| Text.InferNumberType Text functions | Text.InferNumberType(text as text, optional culture as nullable text) as type
Text.InferNumberType ใช้สำหรับตรวจสอบว่าข้อความแสดงตัวเลขชนิดใด เช่น Int64, Double, Decimal หรือ Single เป็นประโยชน์สำหรับการแปลงข้อมูลโดยอัตโนมัติ
|
5 | 3 | 5 | |
| Text.BetweenDelimiters Text functions | Text.BetweenDelimiters(text as text, startDelimiter as text, endDelimiter as text, optional startIndex as any, optional endIndex as any) as any
ดึงข้อความที่อยู่ระหว่างตัวคั่น 2 ตัว
|
5 | 4 | 5 | |
| Text.ToList Text functions | Text.ToList(text as text) as list
Text.ToList จะแยกข้อความหลักออกเป็น List ของ Text String โดยแต่ละสมาชิกใน List จะเป็นตัวอักษร 1 ตัว (รวมถึงช่องว่างและอักขระพิเศษ) ตามลำดับที่ปรากฏในข้อความต้นฉบับ
|
5 | 3 | 5 | |
| Value.FromText Text functions | Value.FromText(text as any, optional culture as nullable text) as any
Value.FromText ใช้สำหรับแปลงข้อความเป็นค่าที่เหมาะสม สามารถแปลงเป็น number, logical, null, datetime, duration หรือ text ตามรูปแบบ
|
5 | 3 | 5 | |
| Text.PadStart Text functions | Text.PadStart(text as nullable text, count as number, optional character as nullable text) as nullable text
Text.PadStart จะเพิ่มอักขระที่ระบุ (เช่น '0' หรือ '-') เข้าไปด้านหน้าของข้อความ จนกว่าความยาวของข้อความนั้นจะถึงจำนวนหลักที่ต้องการ ใช้ในการจัดรูปแบบข้อมูลให้สม่ำเสมอ หรือนำไปใช้กับ Sort ได้อย่างถูกต้อง
|
5 | 3 | 5 | |
| Text.FromBinary Text functions | Text.FromBinary(binary as nullable binary, optional encoding as nullable number) as nullable text
Text.FromBinary ใช้สำหรับแปลงค่า Binary เป็นข้อความ โดยใช้การเข้ารหัส UTF-8 เป็นค่าเริ่มต้น รองรับการเข้ารหัสอื่นๆ เช่น UTF-16 และ ASCII
|
5 | 3 | 5 | |
| Text.ToBinary Text functions | Text.ToBinary(text as nullable text, optional encoding as nullable number, optional includeByteOrderMark as nullable logical) as nullable binary
Text.ToBinary ใช้สำหรับแปลงข้อความเป็นค่า Binary โดยใช้การเข้ารหัส UTF-8 เป็นค่าเริ่มต้น รองรับการเข้ารหัส UTF-16 และ ASCII
|
5 | 3 | 5 | |
| Text.ReplaceRange Text functions | Text.ReplaceRange(text as nullable text, offset as number, count as number, newText as text) as nullable text
Text.ReplaceRange ใช้สำหรับแทนที่อักขระในช่วงที่กำหนดด้วยข้อความใหม่ สามารถใช้ลบหรือแทรกข้อความ
|
4 | 4 | 4 | |
| Text.RemoveRange Text functions | Text.RemoveRange(text as nullable text, offset as number, optional count as nullable number) as nullable text
Text.RemoveRange ใช้สำหรับลบอักขระจำนวนที่ระบุตั้งแต่ตำแหน่งที่กำหนด ค่าเริ่มต้นจะลบ 1 อักขระหากไม่ระบุจำนวน
|
4 | 3 | 4 | |
| Text.Repeat Text functions | Text.Repeat(text as nullable text, count as number) as nullable text
ทำซ้ำข้อความตามจำนวนครั้งที่ระบุ
|
4 | 2 | 4 | |
| Text.NewGuid Text functions | Text.NewGuid() as text
Text.NewGuid ใช้สำหรับสร้าง GUID (Globally Unique Identifier) ใหม่ที่เป็นเอกลักษณ์ แต่ละครั้งที่เรียกจะสร้าง GUID ที่แตกต่างกัน ใช้สำหรับสร้างรหัสเฉพาะตัวที่ไม่ซ้ำ
|
4 | 2 | 4 | |
| Text.PadEnd Text functions | Text.PadEnd(text as nullable text, count as number, optional character as nullable text) as nullable text
Text.PadEnd จะเพิ่มอักขระที่ระบุ (เช่น '0' หรือ '-') เข้าไปด้านหลังของข้อความ จนกว่าความยาวของข้อความนั้นจะถึงจำนวนหลักที่ต้องการ ใช้ในการจัดรูปแบบข้อมูลให้สม่ำเสมอ หรือสร้าง Field ที่มี Character ครบตาม Spec
|
4 | 3 | 4 | |
| Text.Reverse Text functions | Text.Reverse(text as nullable text) as nullable text
กลับด้านข้อความ (Reverse String)
|
3 | 2 | 3 |
ชื่อฟังก์ชันเป็นภาษาอังกฤษเสมอ ลองสะกดอีกแบบ หรือกด Enter เพื่อค้นในคำอธิบายด้วย