Posts

Showing posts from May, 2017

Column from Examples - Power BI

Image
In the April 2017 release of Power BI, Microsoft introduced a great new function.  Have you every been working with your data, and you know exactly what you want a calculated column to look like, but your are not exactly sure of the syntax for the formula?  Maybe you want to concatenate a couple columns, or you want to trim a column or even add some text to a column, well Column by Examples makes this very easy to do. You can access this function in the Query Editor on the Add Column tab. In my sample data there are three columns (birthCountry, birthState and birthCity).  I would like to simply have a new column for Birth Place.  In order to do this, I could add a custom column and write the M formula to define this column.  However I am not sure what the exact syntax should be, so I can simply choose Column From Examples - From All Columns. This creates a new column in the preview mode.  I can then simply type the result I am looking for in the first row.  "Denver, C