Thep Excel

List.Differenceหาผลต่าง List

หาสมาชิกที่อยู่ใน List แรกแต่ไม่อยู่ใน List ที่สอง (Set Difference)

fx
=List.Difference(list1 as list, list2 as list, optional equationCriteria as any) as list

ความนิยม5/10
ความยาก3/10
ประโยชน์5/10

อัปเดต 3 December 2025

Syntax & Arguments

อาร์กิวเมนต์ ชนิด คำอธิบาย
list1 list List ตั้งต้น
list2 list List ตัวลบ

ฟังก์ชัน List.Difference ใน Power Query ใช้สำหรับหาสมาชิกที่อยู่ใน List แรกแต่ไม่อยู่ใน List ที่สอง (Set Difference)

Examples

DifferenceList.Difference({1, 2, 3}, {2, 3})

เอาเฉพาะตัวที่มีใน List แรกแต่ไม่มีใน List สอง

fx
=List.Difference({1, 2, 3}, {2, 3})

ผลลัพธ์{1}

Resources & Related

ฟังก์ชันที่ผู้เขียนโยงไว้กับ List.Difference จัดกลุ่มตามหมวด · ชี้ที่ชื่อใดชื่อหนึ่ง แล้วฟังก์ชันที่ใช้คู่กันจะมีจุดทอง

ฟังก์ชันนี้List.DifferenceList functions
List functions (2)
List.Intersect

หาสมาชิกที่มีอยู่ร่วมกันในทุก List (Set Intersection)

List.RemoveItems

List.RemoveItems จะคืน List ใหม่ที่ไม่มีสมาชิกที่ตรงกับสมาชิกใน removeItems List โดยการเปรียบเทียบจะเป็นแบบ Case Sensitive และตรงกันทุกประการ (Ordinal Comparison)

Comments

อีเมลของคุณจะไม่ถูกเผยแพร่