Today, our cohort received a comprehensive introduction to both Power BI and Power Query, which are essentially Microsoft's counterparts to Tableau and Alteryx. While each tool has its own set of strengths and weaknesses, we were all particularly impressed with a remarkable feature within Power Query.
Column From Examples stands out as a groundbreaking tool that enables users to generate new columns by simply providing examples of the desired output. This feature leverages the ease of human input, making it accessible even to those with limited coding knowledge in data transformations!


To use this feature, you simply start typing your desired output. It's important to note that Power Query may not get everything right immediately. You may need to provide examples in about 2 to 5 unique rows for the software to fully understand your requirements.
Column From Examples offers an extensive list of transformations. Here are a few that I believe everyone will find particularly useful:
String transformations
There are many different ways we would want to change a string/text column. For example, let's say we work for a large retailer and we have a lot of customer/sales data.



Date & Time transformations

Number transformations


This is just a small taste of what Column From Examples can do!
It is always useful to understand the types of transformations Power Query performs in order to complete Column From Examples requests. You can use the solution generated in Power Query, using it's coding language M, to help you understand the process, as well as giving ideas about the calculations in Alteryx and Tableau Prep.
In summary, the Column from Examples tool in Power Query is a user-friendly feature that simplifies data transformation. It learns from your examples to apply consistent transformations, saving time and improving data analysis. It's a valuable addition to your toolkit, making data preparation more efficient and enhancing your insights. Give it a try and experience the benefits for yourself!