---
title: CONTAINSSTRINGEXACT – ฟังก์ชัน DAX
url: https://www.thepexcel.com/functions/dax/information/containsstringexact-dax/
type: function-explainer
program: DAX
syntax: CONTAINSSTRINGEXACT(value) as value
date: 2025-12-14
updated: 2025-12-17
scores:
  popularity: 4
  difficulty: 3
  usefulness: 4
---

# CONTAINSSTRINGEXACT – ฟังก์ชัน DAX

> CONTAINSSTRINGEXACT

## คำอธิบาย

CONTAINSSTRINGEXACT ใช้สำหรับการวิเคราะห์ข้อมูล DAX

## Syntax

```excel
CONTAINSSTRINGEXACT(value) as value
```

## Arguments

| Name | Required | Type | Default | Description |
| --- | --- | --- | --- | --- |
| value | Yes | any |  | ค่าที่ต้องการ |

## ตัวอย่าง

### 1. ตัวอย่างที่ 1: ค้นหาข้อความตรงตัว (เคสเซนซิทีฟ)

```excel
Has Exact Keyword = CONTAINSSTRINGEXACT( Products[Description], "Premium" )
```

**ผลลัพธ์:** `TRUE หรือ FALSE`

เช็กว่ามีคำว่า "Premium" แบบตรงตัวและตรงตัวพิมพ์ใหญ่เล็ก เหมาะกับกรณีที่ต้องการแยกคำเฉพาะแบรนด์/ฉลาก

### 2. ตัวอย่างที่ 2: แยกข้อความตามรหัสมาตรฐาน

```excel
Is ISO Code = CONTAINSSTRINGEXACT( Locations[Notes], "ISO" )
```

**ผลลัพธ์:** `TRUE หรือ FALSE`

ใช้ค้นหาคำมาตรฐานที่ต้องตรงตัว เช่น "ISO" เพื่อมาร์กแถวที่เกี่ยวข้องกับมาตรฐานคุณภาพ

### 3. ตัวอย่างที่ 3: ใช้ใน CALCULATE เพื่อกรองบริบท

```excel
Premium Sales = 
CALCULATE(
    [Total Sales],
    CONTAINSSTRINGEXACT( Products[Description], "Premium" )
)
```

**ผลลัพธ์:** `ยอดขายสินค้าที่มีคำว่า Premium ตรงตัวในคำอธิบาย`

CALCULATE กรองเฉพาะสินค้าที่คำอธิบายมีคำว่า "Premium" แบบตรงตัว ช่วยแยกยอดขายสินค้าเรือธงออกจากสินค้าอื่น

## หมายเหตุเพิ่มเติม

ใช้เมื่อจำเป็นต้องแยกข้อความแบบตรงตัวพิมพ์ใหญ่เล็ก แนะนำใช้คู่กับ CALCULATE/FILTER เพื่อปรับบริบทการคำนวณ

## คำถามที่พบบ่อย

**Q: ฟังก์ชันนี้ใช้สำหรับอะไร**

CONTAINSSTRINGEXACT ใช้สำหรับการวิเคราะห์

**Q: ต้องส่งข้อมูลอะไร**

ส่งค่าหรือคอลัมน์ข้อมูล

## ฟังก์ชันที่เกี่ยวข้อง

- [CONTAINSSTRING – ฟังก์ชันค้นหาข้อความใน DAX](https://www.thepexcel.com/functions/dax/information/containsstring-dax/)
- [SEARCH – ค้นหาตำแหน่งข้อความ (ไม่สนตัวพิมพ์) ใน DAX](https://www.thepexcel.com/functions/dax/text/search-dax/)
- [FIND – หาตำแหน่งข้อความ (แบบแยกตัวพิมพ์ใหญ่/เล็ก)](https://www.thepexcel.com/functions/dax/text/find-dax/)
- [FILTER – กรองตารางด้วยเงื่อนไขที่ซับซ้อน (Iterator Function)](https://www.thepexcel.com/functions/dax/filter/filter-dax/)
- [CALCULATE – ฟังก์ชันหลักของ DAX ที่ควบคุม Filter Context](https://www.thepexcel.com/functions/dax/filter/calculate-dax/)
- [EXACT – เปรียบเทียบข้อความแบบตรงตัว (คำนึงตัวพิมพ์เล็ก/ใหญ่)](https://www.thepexcel.com/functions/dax/text/exact-dax/)

## แหล่งข้อมูลเพิ่มเติม

- [Microsoft Learn: DAX](https://learn.microsoft.com/en-us/dax/function/containsstringexact) _(documentation)_

---

_Source: [https://www.thepexcel.com/functions/dax/information/containsstringexact-dax/](https://www.thepexcel.com/functions/dax/information/containsstringexact-dax/)_
