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

# INFO.ANNOTATIONS – ฟังก์ชัน DAX

> ดึงรายการ Annotation ทั้งหมดในโมเดล

## คำอธิบาย

INFO.ANNOTATIONS ดึงรายการ Annotation ที่บันทึกไว้ในโมเดล DAX ทั้งหมด พร้อมข้อมูลวัตถุปลายทาง ช่วยให้เห็น metadata ที่ทีมเก็บไว้เพื่ออธิบายวัตถุหรือเชื่อมกับระบบอื่น

## Syntax

```excel
INFO.ANNOTATIONS()
```

## Arguments

| Name | Required | Type | Default | Description |
| --- | --- | --- | --- | --- |
| (none) | No | none | - | ไม่มีอาร์กิวเมนต์ ฟังก์ชันส่งกลับตาราง Annotation ทั้งหมด |

## ตัวอย่าง

### 1. ตัวอย่างที่ 1: ดึง Annotation ทั้งโมเดล

```excel
EVALUATE
INFO.ANNOTATIONS()
```

**ผลลัพธ์:** `ตารางรายการ Annotation ทั้งหมด`

ใช้ EVALUATE เพื่อดูรายการ Annotation และข้อมูลอ็อบเจกต์ที่ผูกไว้ เช่น ตาราง คอลัมน์ หรือ Measure

### 2. ตัวอย่างที่ 2: กรองเฉพาะ Annotation ของ Measure

```excel
EVALUATE
FILTER(
    INFO.ANNOTATIONS(),
    [ObjectType] = "Measure"
)
```

**ผลลัพธ์:** `รายการ Annotation ที่ผูกกับ Measure`

กรองตารางเพื่อดูเฉพาะ Annotation ที่เกี่ยวกับ Measure เหมาะสำหรับการทำเอกสารหรือย้ายเวอร์ชัน

### 3. ตัวอย่างที่ 3: ตรวจสอบ Annotation โดยใช้ CALCULATE

```excel
CALCULATE(
    COUNTROWS(INFO.ANNOTATIONS()),
    INFO.ANNOTATIONS()[ObjectType] = "Table"
)
```

**ผลลัพธ์:** `จำนวน Annotation ที่อยู่ในระดับ Table`

CALCULATE ใช้ตัวกรองเพื่อนับเฉพาะ Annotation ของ Table ช่วยประเมินว่ามีการบันทึก metadata ครบหรือไม่

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

ใช้เพื่อสำรวจและจัดเอกสาร Annotation ในโมเดล เหมาะสำหรับทีมที่จัดการ metadata หรือทำ data catalog ภายในองค์กร

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

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

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

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

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

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

- info-functions-dax
- [INFO.ATTRIBUTEHIERARCHIES – ฟังก์ชัน DAX](https://www.thepexcel.com/functions/dax/information/info-attributehierarchies-dax/)
- [INFO.ATTRIBUTEHIERARCHYSTORAGES – ฟังก์ชัน DAX](https://www.thepexcel.com/functions/dax/information/info-attributehierarchystorages-dax/)
- info-catalogs-dax
- [CALCULATE – ฟังก์ชันหลักของ DAX ที่ควบคุม Filter Context](https://www.thepexcel.com/functions/dax/filter/calculate-dax/)
- [FILTER – กรองตารางด้วยเงื่อนไขที่ซับซ้อน (Iterator Function)](https://www.thepexcel.com/functions/dax/filter/filter-dax/)
- [COUNTROWS – นับจำนวนแถวในตารางและเทบิลเสมือน](https://www.thepexcel.com/functions/dax/aggregation/countrows-dax/)

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

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

---

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