Power BI Tip
Dear readers, in this example we show how to select specific columns using Power Query. We have the TotalSales table with two columns.
If we want to add one column that specifies manager’s name from the existing data source we should to add this field in the scope like in this example:
Our new code:
#"Removed Other Columns"=Table.SelectColumns(#"Changed Type",{"Products","Amount","Manager"})
If we need to add another addition column with null values before manager’s name for future data that we do not have right now the query will be:
=Table.SelectColumns(#"Changed Type",{"Products","Amount","Blank Column","Manager"},MissingField.UseNull)
Result code:







