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

Change type

Defining column data types properly early on in your data scrubbing process can help to determine the type of values you are working with. The Power Query Editor has various numeric, text, and date-time data types for you to choose from. In our current example, all of the data types were automatically interpreted correctly by the Power Query Editor, but let's look at where you could change this if necessary:

  1. Locate the data type indicator on the column header to the right of the column name
  2. Click the data type icon, and a menu will open that allows you to choose the new data type you desire:

Choosing the Data type

Another method you can use for changing column data types is to right-click on the column you wish to change, then select Change Type and choose the new data type you desire.

If you want to change multiple column data types at once, you can multi-select the necessary columns, then select the new data type from the Data Type property under the Home ribbon.

Many of the transforms you will encounter in the future are contextually based on the column data types you are working with. For example, if you have a column that is a date then you will be provided special transforms that can only be executed against a date data type, such as extracting the month name from a date column.

主站蜘蛛池模板: 清远市| 宾阳县| 白银市| 浦东新区| 晴隆县| 屏东市| 广灵县| 华容县| 罗江县| 通州区| 长治县| 苏尼特右旗| 全州县| 大石桥市| 乌鲁木齐县| 盐池县| 德钦县| 长汀县| 七台河市| 襄汾县| 遵义县| 长垣县| 朔州市| 封丘县| 城固县| 河津市| 合水县| 延寿县| 象州县| 大连市| 卢氏县| 监利县| 祥云县| 雷波县| 义乌市| 寻乌县| 尼玛县| 香港 | 巴楚县| 新余市| 山丹县|