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

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.

主站蜘蛛池模板: 璧山县| 秦皇岛市| 诸暨市| 独山县| 醴陵市| 张北县| 天柱县| 瓦房店市| 吉林省| 错那县| 海宁市| 安西县| 宁波市| 岑溪市| 南宫市| 枣庄市| 筠连县| 永善县| 陕西省| 靖远县| 通榆县| 漳平市| 宜阳县| 隆昌县| 金寨县| 三明市| 舞钢市| 辽源市| 油尖旺区| 渝北区| 景谷| 穆棱市| 阿荣旗| 马公市| 若尔盖县| 理塘县| 泰顺县| 通江县| 宁德市| 平凉市| 浦东新区|