Bài viết liên quan

Tạo table MonthlyBudgetHeader


31/03/2020- duocnt    1261 Views    


Nội dung bài viết:

  1. Tạo table MonthlyBudgetHeader.
  2. Thiết lập các thuộc tính cần thiết cho table.
  3. Tạo Field.
  4. Tạo Index.

THỰC HIỆN:

1 - Tạo table MonthlyBudgetHeader.

 - Tạo Project mới đặt tên "20_MonthtlyBudgetForm" (tên tùy ý).

 - Right-click lên project => Add => New Item.

 - Chọn Data Model => Table, đặt tên MonthlyBudgetHeader, click Add.

 2 - Thiết lập các thuộc tính cần thiết cho Table MonthlyBudgetHeader.

- Mở table MonthlyBudgetHeader ở chế độ Design, right-click lên table chọn Properties, và thiết lập cá thuộc tính sau cho table.

    + Created By : Yes.

    + Created Date Time : Yes.

    + Created Transaction Id : Yes.

    + Modified By : Yes.

    + Modified Date Time : Yes.

    + Modified Transaction Id : Yes.



3 - Tạo field.

- Right-click lên node Fields của table MonthlyBudgetHeader vừa tạo.

 - Chọn New => Integer để tạo field mới kiểu Integer cho table.

 - Right-click lên FieldInt1 => Properties và đặt các thuộc tính sau cho Field.

    + Name : Year.

    + Lable : Year.



4 - Tạo Index. 

- Right-click lên node Indexes của table, chọn New Index để tạo Index cho Table.

 - Thiết lập thuộc tính cho Index1 trong Properties như sau:

    + Allow Duplicates : No.

    + Alternate Key : Yes.

    + Name : Index1.

 - Kéo field Year trong node Fields của table vào Index1.


Đã tạo xong table MonthlyBudgetHeader, cũng là bài đầu tiên trong Series bài hướng dẫn Power Bi So Sánh Target với Actual.

Góp ý kiến

;
;