ดึงตัวแรก
=Text.At("Hello", 0)
H
ดึงอักขระที่ตำแหน่งที่ระบุ
Text.At ใช้สำหรับดึงอักขระตัวเดียวที่ตำแหน่งที่ระบุในข้อความ โดยใช้การนับ zero-based index ที่ตำแหน่ง 0 คือตัวแรก ตำแหน่ง 1 คือตัวที่สอง เป็นต้น
=Text.At(text as nullable text, index as number) as nullable text
=Text.At(text as nullable text, index as number) as nullable text
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
| text | nullable text | Yes | ข้อความที่ต้องการค้นหาอักขระ | |
| index | number | Yes | ตำแหน่ง zero-based ของอักขระที่ต้องการดึง (0 = ตัวแรก) |
ดึงตัวแรกของชื่อสำหรับสร้าง initials
ตรวจสอบอักขระเฉพาะในข้อความ
แยกส่วนของรหัส ID ที่มีตำแหน่งคงที่
=Text.At("Hello", 0)
H
=Text.At("Hello, World", 4)
o
=Text.At("Power Query", 6)
Q
Text.At ใช้สำหรับดึงอักขระตัวเดียวที่ตำแหน่งที่ระบุในข้อความ โดยใช้การนับ zero-based index ที่ตำแหน่ง 0 คือตัวแรก ตำแหน่ง 1 คือตัวที่สอง เป็นต้น