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

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.

主站蜘蛛池模板: 邵武市| 会东县| 镶黄旗| 双江| 东阿县| 延川县| 高淳县| 临武县| 宁强县| 浑源县| 新乐市| 常州市| 阳信县| 安义县| 平和县| 黔西| 宁武县| 聂拉木县| 武强县| 始兴县| 定日县| 时尚| 乌兰察布市| 焦作市| 石棉县| 南木林县| 咸阳市| 陕西省| 沅江市| 宁国市| 黄骅市| 基隆市| 新丰县| 沙河市| 铜陵市| 区。| 青岛市| 榕江县| 桐乡市| 海原县| 伊川县|