- Microsoft Power BI Quick Start Guide
- Devin Knight Brian Knight Mitchell Pearson Manuel Quintana
- 258字
- 2021-08-13 16:02:56
Add Column From Examples
One option that can make complex data transformations seem simple is the feature called Add Column From Examples. Using Add Column From Examples, you can provide the Power Query Editor a sample of what you would like your data to look like, and it can then automatically determine which transforms are required to accomplish your goal. Continuing with the same failed banks example, let's walk through a simple example of how to use this feature:
- Find and select the Add Column tab in the Power Query Editor ribbon.
- Select the Column From Example button and, if prompted, choose From All Columns. This will launch a new Add Column From Examples interface.
- Our goal is to leverage this feature to combine the City and ST columns together. In the first empty cell, type Chicago, IL and then hit Enter. You should notice that below the text you typed Power BI has automatically translated what you typed into a transform that can be applied for every row in the dataset.
- Once you click OK, the transform is finalized and automatically added to the overall M query that has been built through the user interface:

Adding Columns from Examples
Sometimes, you may encounter scenarios where the Add Column From Examples feature needs more than one example to properly translate your example into an M query function that accomplishes your goal. If this happens, simply provide additional examples of how you would like the data to appear, and the Power Query Editor should adjust to account for outliers.
推薦閱讀
- CSS全程指南
- Apache Hive Essentials
- 電腦上網直通車
- RPA:流程自動化引領數字勞動力革命
- Maya極速引擎:材質篇
- 水晶石精粹:3ds max & ZBrush三維數字靜幀藝術
- 觸控顯示技術
- INSTANT Drools Starter
- 步步圖解自動化綜合技能
- 在實戰中成長:Windows Forms開發之路
- Citrix? XenDesktop? 7 Cookbook
- 從零開始學JavaScript
- 傳感器與自動檢測
- 樂高創意機器人教程(中級 上冊 10~16歲) (青少年iCAN+創新創意實踐指導叢書)
- Effective Business Intelligence with QuickSight