# Filter Measure

**Filter Measure** là một loại Measure động, cho phép điều kiện lọc thay đổi linh hoạt dựa trên ngữ cảnh báo cáo. Để tạo một Filter Measure, bạn sẽ cần thực hiện theo các bước sau:

{% stepper %}
{% step %}

#### Tạo Measure Filter

Measure Filter là thành phần cốt lõi để xác định điều kiện lọc động.

* Đăng nhập và chọn **Workspace** làm việc của bạn.
* Truy cập **Data Model**.
* Chọn **Data Model** mà bạn muốn tạo Filter Measure.
* Chuyển đến tab **Measure Filters**.
* Tạo một **Measure Filter** mới

<figure><img src="/files/b3zuLvglcC2d4O1rKErg" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### Tạo Measure cơ bản

Tạo một Measure cơ bản bằng cách chọn tab **Measures** và cấu hình các thông tin cần thiết (aggregation, field...).

Tham khảo thêm tại [Tạo Measure cơ bản](https://docs.datasuite.vn/cac-tinh-nang/data-modeling/measure/pages/wbuQAoQdi2NQYw17BQmx#id-4.2.4.1measurecoban-taomeasure)
{% endstep %}

{% step %}

#### Gắn Measure Filter vào Measure cơ bản để tạo Filter Measure

Đây là bước quan trọng nhất để biến Measure cơ bản thành Filter Measure.

Trong quá trình tạo hoặc chỉnh sửa Measure cơ bản, **liên kết Measure Filter** đã tạo vào phần điều kiện lọc của Measure để hoàn thành Filter Measure.
{% endstep %}

{% step %}

#### Kiểm tra Filter Measure đã tạo

Chuyển sang tab **Explorer**, chọn Filter Measure vừa tạo cùng các Dimension liên quan, sau đó nhấn **Query** để kiểm tra kết quả hiển thị.
{% endstep %}
{% endstepper %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.datasuite.vn/cac-tinh-nang/data-modeling/measure/filter-measure.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
