ตรวจสอบตัวเลขเต็ม
=Text.InferNumberType("123")
Int64.Type
ตรวจสอบและระบุชนิดข้อมูลตัวเลข
Text.InferNumberType ใช้สำหรับตรวจสอบว่าข้อความแสดงตัวเลขชนิดใด เช่น Int64, Double, Decimal หรือ Single เป็นประโยชน์สำหรับการแปลงข้อมูลโดยอัตโนมัติ
=Text.InferNumberType(text as text, optional culture as nullable text) as type
=Text.InferNumberType(text as text, optional culture as nullable text) as type
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
| text | text | Yes | ข้อความที่ต้องการตรวจสอบชนิดตัวเลข | |
| culture | nullable text | Optional | null | รหัสวัฒนธรรม (เช่น ‘en-US’, ‘th-TH’) สำหรับการแปลตามท้องถิ่น |
แปลงข้อมูลข้อความเป็นตัวเลขโดยอัตโนมัติ
ตรวจจับประเภทข้อมูลในอัลกอริทึม auto-detect
จัดการสกุลเงิน เปอร์เซ็นต์ และรูปแบบตัวเลขอื่นๆ
=Text.InferNumberType("123")
Int64.Type
=Text.InferNumberType("123.45")
Double.Type
=Text.InferNumberType("50%")
Double.Type
Text.InferNumberType ใช้สำหรับตรวจสอบว่าข้อความแสดงตัวเลขชนิดใด เช่น Int64, Double, Decimal หรือ Single เป็นประโยชน์สำหรับการแปลงข้อมูลโดยอัตโนมัติ