หาสมาชิกที่อยู่ใน List แรกแต่ไม่อยู่ใน List ที่สอง (Set Difference)
=List.Difference(list1 as list, list2 as list, optional equationCriteria as any) as list
=List.Difference(list1 as list, list2 as list, optional equationCriteria as any) as list
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
| list1 | list | Yes | List ตั้งต้น | |
| list2 | list | Yes | List ตัวลบ |
List.Difference({1, 2, 3}, {2, 3})=List.Difference({1, 2, 3}, {2, 3})
{1}
ฟังก์ชัน List.Difference ใน Power Query ใช้สำหรับหาสมาชิกที่อยู่ใน List แรกแต่ไม่อยู่ใน List ที่สอง (Set Difference)