> For the complete documentation index, see [llms.txt](https://docs.clickai.vn/clickai-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.clickai.vn/clickai-docs/tinh-nang/bang-so-lieu/thao-tac-tren-du-lieu.md).

# Thao tác trên Dữ liệu

## Mục lục

·       \[Tìm kiếm (Search)]\(#tìm-kiếm-search)

·       \[Sắp xếp (Sort)]\(#sắp-xếp-sort)

·       \[Lọc (Filter)]\(#lọc-filter)

·       \[Nhóm (Group By)]\(#nhóm-group-by)

·       \[Ẩn Fields (Hide Fields)]\(#ẩn-fields-hide-fields)

·       \[Chiều cao dòng (Row Height)]\(#chiều-cao-dòng-row-height)

·       \[Field Summary (Tóm tắt)]\(#field-summary-tóm-tắt)

&#x20;

## Tìm kiếm (Search)

Tìm kiếm nhanh records theo giá trị trong fields:

### Tìm kiếm toàn bộ

1\.     Nhấn biểu tượng 🔍 trên toolbar hoặc dùng phím tắt Ctrl/Cmd + F

2\.     Nhập từ khóa tìm kiếm

3\.     Kết quả được highlight trực tiếp trên table

### Tìm kiếm theo field cụ thể

4\.     Mở Search → chọn field cụ thể từ dropdown

5\.     Nhập giá trị cần tìm

6\.     Chỉ tìm kiếm trong field đã chọn

💡 TIP: Search giúp tìm kiếm nhanh nhưng chỉ hiển thị kết quả — không lọc records. Nếu bạn muốn chỉ hiển thị records khớp điều kiện, hãy sử dụng \*\*Filter\*\*.

&#x20;

## Sắp xếp (Sort)

Sắp xếp records theo một hoặc nhiều fields:

### Thêm Sort

7\.     Nhấn nút Sort trên toolbar

8\.     Chọn field cần sắp xếp

9\.     Chọn thứ tự: Ascending (A→Z, 1→9) hoặc Descending (Z→A, 9→1)

### Multi-level Sort

Sắp xếp theo nhiều tiêu chí — sort thứ hai áp dụng cho các records có giá trị sort thứ nhất giống nhau:

10\.  Nhấn Sort → + Add Sort

11\.  Chọn field và thứ tự cho mỗi level

Ví dụ Multi-level Sort:\
──────────────────────\
Sort 1: Status (Ascending)    → Active → Inactive → Pending\
Sort 2: Created Date (Desc)   → Mới nhất trước trong mỗi nhóm Status

### Xóa Sort

·       Nhấn biểu tượng ✕ bên cạnh sort rule

·       Hoặc nhấn Clear All để xóa tất cả

📝 NOTE: Cấu hình Sort được lưu riêng cho mỗi view. Sắp xếp trong Grid View 1 không ảnh hưởng đến Grid View 2.

&#x20;

## Lọc (Filter)

Lọc records để chỉ hiển thị dữ liệu khớp với điều kiện nhất định:

### Thêm Filter

12\.  Nhấn nút Filter trên toolbar

13\.  Chọn field cần lọc

14\.  Chọn toán tử (operator)

15\.  Nhập giá trị lọc

16\.  Records không khớp điều kiện sẽ bị ẩn

### Các toán tử phổ biến

<table data-header-hidden><thead><tr><th valign="top"></th><th valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Toán tử</td><td valign="top">Mô tả</td><td valign="top">Áp dụng cho</td></tr><tr><td valign="top">is equal</td><td valign="top">Bằng chính xác giá trị</td><td valign="top">Text, Number, Select</td></tr><tr><td valign="top">is not equal</td><td valign="top">Khác giá trị</td><td valign="top">Text, Number, Select</td></tr><tr><td valign="top">contains</td><td valign="top">Chứa chuỗi con</td><td valign="top">Text</td></tr><tr><td valign="top">does not contain</td><td valign="top">Không chứa chuỗi con</td><td valign="top">Text</td></tr><tr><td valign="top">is empty</td><td valign="top">Ô trống</td><td valign="top">Tất cả</td></tr><tr><td valign="top">is not empty</td><td valign="top">Ô có giá trị</td><td valign="top">Tất cả</td></tr><tr><td valign="top">is greater than</td><td valign="top">Lớn hơn</td><td valign="top">Number, Date</td></tr><tr><td valign="top">is less than</td><td valign="top">Nhỏ hơn</td><td valign="top">Number, Date</td></tr><tr><td valign="top">is within</td><td valign="top">Trong khoảng</td><td valign="top">Date</td></tr><tr><td valign="top">is like</td><td valign="top">Giống với (pattern)</td><td valign="top">Text</td></tr></tbody></table>

&#x20;

### Kết hợp nhiều Filter

Sử dụng AND / OR logic để kết hợp nhiều điều kiện:

<table data-header-hidden><thead><tr><th valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Logic</td><td valign="top">Mô tả</td></tr><tr><td valign="top">AND</td><td valign="top">Tất cả điều kiện phải đúng</td></tr><tr><td valign="top">OR</td><td valign="top">Ít nhất một điều kiện đúng</td></tr></tbody></table>

&#x20;

Ví dụ Filter kết hợp:\
──────────────────────\
Filter 1: Status IS "Active"\
&#x20; AND\
Filter 2: Revenue IS GREATER THAN 1000000\
&#x20; AND\
Filter 3: Region IS "Ho Chi Minh"\
\
→ Kết quả: Chỉ hiển thị khách hàng Active ở HCM có revenue > 1M

### Filter Group (Nhóm điều kiện)

Tạo nhóm điều kiện lồng nhau cho logic phức tạp:

(Status IS "Active" OR Status IS "VIP")\
&#x20; AND\
(Region IS "Ha Noi" OR Region IS "Ho Chi Minh")

&#x20;

## Nhóm (Group By)

Nhóm records theo giá trị của field, hiển thị dữ liệu theo danh mục:

### Thêm Group By

17\.  Nhấn nút Group trên toolbar

18\.  Chọn field để nhóm

19\.  Chọn thứ tự nhóm (Ascending/Descending)

### Multi-level Group

Nhóm lồng nhau với nhiều level:

Group Level 1: Department\
├── Engineering\
│   Group Level 2: Position\
│   ├── Senior Developer (3 records)\
│   └── Junior Developer (5 records)\
├── Marketing\
│   ├── Manager (2 records)\
│   └── Specialist (4 records)\
└── Sales\
&#x20;   ├── Lead (1 record)\
&#x20;   └── Representative (6 records)

### Tính năng trong Grouped View

·       Collapse/Expand: Thu gọn hoặc mở rộng từng nhóm

·       Count: Hiển thị số lượng records trong mỗi nhóm

·       Summary: Hiển thị tổng hợp (Sum, Avg...) cho mỗi nhóm

&#x20;

## Ẩn Fields (Hide Fields)

Ẩn các fields không cần thiết trong view hiện tại:

20\.  Nhấn nút Fields trên toolbar

21\.  Toggle on/off từng field

22\.  Kéo thả để thay đổi thứ tự hiển thị

📝 NOTE: Ẩn field chỉ ảnh hưởng view hiện tại — dữ liệu vẫn tồn tại và có thể truy cập qua view khác hoặc API.

&#x20;

## Chiều cao dòng (Row Height)

Điều chỉnh chiều cao dòng để hiển thị nhiều hoặc ít nội dung hơn:

<table data-header-hidden><thead><tr><th valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Tùy chọn</td><td valign="top">Mô tả</td></tr><tr><td valign="top">Short</td><td valign="top">Nhỏ gọn, chỉ hiển thị 1 dòng text</td></tr><tr><td valign="top">Medium</td><td valign="top">Vừa phải, hiển thị 2-3 dòng</td></tr><tr><td valign="top">Tall</td><td valign="top">Cao, hiển thị nhiều nội dung hơn</td></tr><tr><td valign="top">Extra</td><td valign="top">Rất cao, hiển thị tối đa nội dung và attachment preview</td></tr></tbody></table>

&#x20;

&#x20;

## Field Summary (Tóm tắt)

Hiển thị thông tin tổng hợp ở footer của table:

<table data-header-hidden><thead><tr><th valign="top"></th><th valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Hàm</td><td valign="top">Mô tả</td><td valign="top">Áp dụng cho</td></tr><tr><td valign="top">Count</td><td valign="top">Đếm số records</td><td valign="top">Tất cả</td></tr><tr><td valign="top">Count Empty</td><td valign="top">Đếm số ô trống</td><td valign="top">Tất cả</td></tr><tr><td valign="top">Count Filled</td><td valign="top">Đếm số ô có giá trị</td><td valign="top">Tất cả</td></tr><tr><td valign="top">Count Unique</td><td valign="top">Đếm giá trị duy nhất</td><td valign="top">Tất cả</td></tr><tr><td valign="top">Sum</td><td valign="top">Tổng</td><td valign="top">Number</td></tr><tr><td valign="top">Average</td><td valign="top">Trung bình</td><td valign="top">Number</td></tr><tr><td valign="top">Min</td><td valign="top">Giá trị nhỏ nhất</td><td valign="top">Number, Date</td></tr><tr><td valign="top">Max</td><td valign="top">Giá trị lớn nhất</td><td valign="top">Number, Date</td></tr></tbody></table>

&#x20;

Cách sử dụng:

23\.  Click vào footer cell của field cần tóm tắt

24\.  Chọn hàm tổng hợp từ dropdown

25\.  Kết quả hiển thị trực tiếp ở footer


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.clickai.vn/clickai-docs/tinh-nang/bang-so-lieu/thao-tac-tren-du-lieu.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.
