The Advanced Editor window appears, which gives you full control over your query. In the Power Query Editor window, from the View tab on the ribbon, select Advanced Editor. Use the Advanced Editor for custom columnsĪfter you've created your query, you can also use the Advanced Editor to modify any step of your query. The Custom Column window appears with the custom column formula you created. To modify your custom column, double-click the Added Custom step in the Applied Steps list. Power BI Desktop adds your custom column to the model, and adds the Added Custom step to your query's Applied Steps list in Query Settings. If there's a syntax error, you'll see a yellow warning icon, along with a link to where the error occurred in your formula. If there are no errors, you'll see a green check mark and the message No syntax errors have been detected. You can also add a column by double-clicking it in the list.Īs you enter the formula and build your column, note the indicator in the bottom of the Custom Column window. Select columns from the Available columns list on the right, and then select Insert below the list to add them to the custom column formula. You create these queries by building the formula on which your new custom column is defined. PowerQuery M formula queries, in the Custom column formula box. The initial name of your custom column, in the New column name box. The Custom Column window has the following features:Ī list of available columns, in the Available columns list on the right. Launch Power BI Desktop and load some data.įrom the Home tab on the ribbon, select Transform data, and then select Transform data from the menu.įrom the Add Column tab on the ribbon, select Custom Column. To start creating a custom column, follow these steps: Use Power Query Editor to add a custom column It can be changed, moved, or modified at any time. When you create a custom column in Power Query Editor, Power BI Desktop adds it as an Applied Step in the Query Settings of the query. PowerQuery M formula queries have a comprehensive function reference content set. With Power Query Editor, you create and rename your custom column to create PowerQuery M formula queries to define your custom column.
In Power BI Desktop, you can easily add a new custom column of data to your model by using Power Query Editor. APPLIES TO: ✔️ Power BI Desktop ❌ Power BI service