Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
freem
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Openai/68f068ac-7354-8009-a22d-26b4d7378725
(section)
Add languages
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Assistant: Rất tốt — mình đã kiểm tra cấu trúc file của bạn và thấy base hiện tại có 3 sheet: === Rất tốt — mình đã kiểm tra cấu trúc file của bạn và thấy base hiện tại có 3 sheet: ===== - PRODUCTS: Thông tin sản phẩm → Gồm: product_id, product_name, category, cost_price, selling_price, status ===== * ORDERS: Thông tin đơn hàng → Gồm: order_id, order_date, employee_id, team_id, customer_name, status, completed_date * ORDER_DETAILS: Chi tiết từng đơn hàng → Gồm: detail_id, order_id, product_id, quantity, unit_price, unit_cost, discount, line_total ==== Bạn muốn tính: ==== # Gross margin (biên lợi nhuận gộp) # Chi phí khuyến mãi # Thưởng 15% trên lợi nhuận # Net margin # Phân loại đơn lãi/lỗ # Chuẩn hóa tên cột tiếng Anh ==== ### ==== | | | | | | --- | --- | --- | --- | | | | | | | | | | | | | | | | | | | | | | | | | | ===== 1. Mở base Orders trong Lark. ===== # Chọn “Add Field” → “Formula”. # Thêm các trường trên lần lượt theo thứ tự (dùng tên tiếng Anh như bảng trên). # Khi thêm công thức, bạn cần liên kết bảng <code>ORDER_DETAILS</code> với <code>ORDERS</code> bằng order_id (nếu chưa có link relation). - Trong Lark: chọn Field Type → Link to another table → ORDER_DETAILS - Sau đó bật “Show aggregated fields” để có thể dùng SUM() cho các giá trị liên quan. # Nhập công thức chính xác như trên (Lark Base hỗ trợ công thức tương tự Excel, chỉ cần chọn đúng trường liên kết). ===== Giả sử 1 đơn hàng có: ===== * Doanh thu (line_total) = 10,000 * Giá vốn = 6,000 * Khuyến mãi = 500 👉 Gross margin = 10,000 - 6,000 = 4,000 👉 Bonus 15% = 4,000 × 0.15 = 600 👉 Net margin = 4,000 - 500 - 600 = 2,900 👉 Phân loại: Profit ===== Để đồng nhất toàn bộ hệ thống, bạn nên chuẩn hóa các tên cột như sau: ===== | | | | --- | --- | | | | | | | ===== - “Cách tạo formula field trong Lark Base” ===== * “Cách liên kết bảng Orders và Order Details trong Lark” * “Tự động tính toán lợi nhuận và phân loại đơn hàng trong Base” This is an AI Bot developed by Transform Group, the first Platinum Partner of Lark in Southeast Asia. Register to purchase Lark Pro at: https://s.id/larkpro
Summary:
Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see
Freem:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)