Complete the code to load data from an Excel table named 'SalesData' in Query Editor.
let Source = Excel.CurrentWorkbook(){[Name=[1]]}[Content] in SourceThe table name must be a text string in quotes inside the record selector.
Complete the code to filter rows where the 'Region' column equals 'West' in Query Editor.
FilteredRows = Table.SelectRows(Source, each [Region] [1] "West")
In Query Editor's M language, the equality operator is a single equals sign '='.
Fix the error in the code to rename the column 'OldName' to 'NewName' in Query Editor.
RenamedColumns = Table.RenameColumns(Source, [1])The second argument must be a list of lists, so double curly braces are needed around the pair.
Fill both blanks to add a new column 'Total' that sums 'Price' and 'Tax' columns in Query Editor.
AddedColumn = Table.AddColumn(Source, [1], each [Price] [2] [Tax])
The new column name must be a text string, and the operator to add numbers is '+'.
Fill all three blanks to create a list of values from the 'Name' column where 'Age' is greater than 30 in Query Editor.
FilteredList = Table.Column(Table.SelectRows(Source, each [[3]] [2] 30), [1])
We first filter the table rows where Age > 30 using Table.SelectRows, then extract the 'Name' column as a list using Table.Column.