Thursday 13 July 2017

[Power BI]Shape and combine data in Power BI Desktop


Shape and combine data in Power BI Desktop


要獲取此數據的形狀,我們採取以下步驟:
  • Remove the top two rows –它們是創建網頁表格的結果,我們不需要它們。從Home ribbon (主頁功能區) , 選擇 Remove Rows > Remove Top Rows.

出現 Remove Top Rows 窗口,讓您指定要刪除的行數。



  • Remove the bottom 26 rows –它們都是我們不需要包含的所有領域。在Home ribbon主功能區中 From the , select Remove Rows > Remove Bottom Rows.




  • 由於 Table 0 表沒有Washington DC (華盛頓特區)的信息,因此我們需要從我們的列表中過濾。選擇“區域狀態”列旁邊的下拉箭頭,然後清除旁邊 Federal district的複選框


  • Remove a few unneeded columns –  - 我們只需要將狀態映射到其兩個字母的縮寫,所以我們只要Name and status of regionANSI,因此我們要刪除其他列:選擇要刪除的列,然後選擇“刪除列”>“刪除列”。

    最後結果
  • Rename the columns, and the table itself –像往常一樣,有幾種方法來重命名列;首先選擇列,然後從功能區上的“Transform ”選項卡中選擇“Rename ”,或者右鍵單擊並從出現的菜單中選擇“Rename ”。以下圖像具有指向兩個選項的箭頭;你只需要選擇一個。



讓我們重命名為“State Name”和“State Code”。重新命名表,只需在“Query Settings”窗格中的“Name ”框中鍵入名稱。讓我們把這個表稱為NewColumn

No comments:

Post a Comment

how-to-recursively-create-subfolder-in-each-folder-of-a-directory-in-cmd

test.cmd: @echo off setlocal for /f "usebackq tokens=*" %%a in (`dir /b /a:d`) do ( rem enter the directory pushd %%a echo...