官术网_书友最值得收藏!

Remove Columns

Often, the data sources you will connect to will include many columns that are not necessary for the solution you are designing. It is important to remove these unnecessary columns from your dataset because these unused columns needlessly take up space inside your data model. There are several different methods for removing columns in the Power Query Editor. This example will show one of these methods using the same dataset from the prior demonstration:

  1. Multi-select (Ctrl + click) the column headers of the columns you wish to keep as part of your solution. In this scenario, select the columns Bank Name, City, ST, and Closing Date.
  2. With these four columns selected, right-click on any of the selected columns and choose Remove Other Columns. Once this transform is completed, you should be left with only the columns you need:
Option to Remove Other Columns

Another popular method for removing columns is clicking the Choose Columns button on the Home ribbon of the Power Query Editor. This option provides a list of all the columns, and you can choose the columns you wish to keep or exclude. 

You can also select the  columns you wish to remove; right-click on one of the selected columns and click Remove. This seems like the more obvious method. However, this option is not as user-friendly in the long run because it does not provide an option to edit the transform in the Applied Steps section like the first two methods allow.

主站蜘蛛池模板: 梁河县| 务川| 怀来县| 怀仁县| 吴川市| 康马县| 巴彦淖尔市| 基隆市| 牙克石市| 九江市| 张北县| 宁波市| 古丈县| 承德县| 金寨县| 五河县| 兰西县| 苍南县| 涞水县| 迁安市| 广平县| 新河县| 丰原市| 柯坪县| 浠水县| 开江县| 彭泽县| 环江| 天全县| 繁昌县| 塘沽区| 贺州市| 嘉荫县| 乌鲁木齐县| 澎湖县| 博兴县| 剑川县| 云霄县| 灌南县| 靖边县| 辽宁省|