> For the complete documentation index, see [llms.txt](https://kythuat.dtechvn.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kythuat.dtechvn.com/phieu-in-nhap-lieu/merger-cac-o-cua-cot-tren-cac-dong-giong-nhau.md).

# Merger các ô của cột trên các dòng giống nhau

## Mô tả

* Ở bảng dữ liệu chi tiết detail, khách hàng muốn merge các ô theo 1 tiêu chí nào đó
* Hình ảnh minh hoạ:&#x20;

  <figure><img src="/files/gS3aiCrgqT3gdRpAjmtn" alt=""><figcaption><p>Mong muốn merge các ô giống nhau vào</p></figcaption></figure>

## Hướng dẫn

### Nguyên tắc

* Xác định tiêu chí để merger
* Nếu tiêu chưa sẵn có trên dữ liệu thì cần xử lý lại data truyền vào mẫu in
* Khi merge nên chọn merge theo:
  * Value
  * Tag

### Hướng dẫn

* Merge các ô detail theo cột stt được xử lý ở tiền xử lý: các dòng có stt giống nhau thì được merge

* Cấu hình merger: merge theo tag&#x20;

  <figure><img src="/files/3XWLErpJrC75u9tJ6HS8" alt=""><figcaption><p>Cấu hình xử lý trùng dữ liệu: Kiểu merge (gộp) và dựa vào tag (stt)</p></figcaption></figure>

* Cấu hình lại giá trị tag để phục vụ việc cấu hình merge theo tag: với tag là cột stt&#x20;

  <figure><img src="/files/Faa8R2smCKZmtnkC3Z5F" alt=""><figcaption><p>Khai báo tag là cột stt ( cột stt được xử lý ở tiền xử lý - các dòng giống nhau thì stt giống nhau)</p></figcaption></figure>

* Kết quả sau khi cấu hình&#x20;

  <figure><img src="/files/gS3aiCrgqT3gdRpAjmtn" alt=""><figcaption><p>Kết quả sau khi cấu hình merge theo tag (stt)</p></figcaption></figure>


---

# 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, and the optional `goal` query parameter:

```
GET https://kythuat.dtechvn.com/phieu-in-nhap-lieu/merger-cac-o-cua-cot-tren-cac-dong-giong-nhau.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
