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

  • Microsoft Power BI Quick Start Guide
  • Devin Knight Brian Knight Mitchell Pearson Manuel Quintana
  • 237字
  • 2021-08-13 16:02:55

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.

主站蜘蛛池模板: 南召县| 栖霞市| 朝阳市| 荣成市| 砚山县| 延川县| 九寨沟县| 离岛区| 容城县| 泽普县| 樟树市| 万全县| 阜新| 赣州市| 胶南市| 恩平市| 海晏县| 平塘县| 大埔县| 徐汇区| 夹江县| 平南县| 都匀市| 大宁县| 白城市| 贡山| 富川| 集贤县| 天台县| 平塘县| 溆浦县| 八宿县| 黄陵县| 噶尔县| 江达县| 万安县| 肥东县| 宽城| 万盛区| 怀来县| 曲阳县|