vanaccex
Thành viên tiêu biểu

- Tham gia
- 8/7/18
- Bài viết
- 457
- Được thích
- 306
- Giới tính
- Nữ
Em Vân cảm ơn Thầy nhiều ạthêm 1 step
Result = Table.SelectRows(Source, each [Mã Vật tư] <> null)
(dùng nút lọc cũng ra step này)
Em Vân có thử nhưng cách này Em Vân chưa làm được thêm 1 cột nữa ạ. Mong thầy giúp đỡ em ạthêm 1 step
Result = Table.SelectRows(Source, each [Mã Vật tư] <> null)
(dùng nút lọc cũng ra step này)
View attachment 273448
Dữ liệu em Vân muốn thêm cột Tiêu Đề 2 và có thể lấy dữ liệu từ cột diễn giải ạThêm cột gì chứ?
Trong tài liệu có hướng dẫn tạo cột, đủ loại cột
Bạn xem đúng chưaDữ liệu em Vân muốn thêm cột Tiêu Đề 2 và có thể lấy dữ liệu từ cột diễn giải ạ
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Ngày tháng", type datetime}, {"Diễn giải", type text}, {"Mã VT", type text}, {"Mã Kho", type text}, {"Số lượng", Int64.Type}, {"Đơn giá", Int64.Type}}),
#"Added Custom" = Table.AddColumn(#"Changed Type", "Tiêu đề", each if [Mã VT] <> null then null else [Diễn giải]),
#"Filled Down" = Table.FillDown(#"Added Custom",{"Tiêu đề"}),
#"Filtered Rows" = Table.SelectRows(#"Filled Down", each ([Mã VT] <> null)),
#"Reordered Columns" = Table.ReorderColumns(#"Filtered Rows",{"Ngày tháng", "Diễn giải", "Tiêu đề", "Mã VT", "Mã Kho", "Số lượng", "Đơn giá"})
in
#"Reordered Columns"
Dạ đúng ý em Vân rồi ạ ! Em Vân cảm ơn ạBạn xem đúng chưa
View attachment 273456
Mã:let Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content], #"Changed Type" = Table.TransformColumnTypes(Source,{{"Ngày tháng", type datetime}, {"Diễn giải", type text}, {"Mã VT", type text}, {"Mã Kho", type text}, {"Số lượng", Int64.Type}, {"Đơn giá", Int64.Type}}), #"Added Custom" = Table.AddColumn(#"Changed Type", "Tiêu đề", each if [Mã VT] <> null then null else [Diễn giải]), #"Filled Down" = Table.FillDown(#"Added Custom",{"Tiêu đề"}), #"Filtered Rows" = Table.SelectRows(#"Filled Down", each ([Mã VT] <> null)), #"Reordered Columns" = Table.ReorderColumns(#"Filtered Rows",{"Ngày tháng", "Diễn giải", "Tiêu đề", "Mã VT", "Mã Kho", "Số lượng", "Đơn giá"}) in #"Reordered Columns"
Mấy cái này có sẵn trong tài liệu hết rồi.Dạ đúng ý em Vân rồi ạ ! Em Vân cảm ơn ạ