Complete the code to add a new applied step that filters rows where Sales is greater than 1000.
let
Source = Excel.CurrentWorkbook(){[Name="SalesData"]}[Content],
FilteredRows = Table.SelectRows(Source, each [Sales] [1] 1000)
in
FilteredRowsWe use the greater than operator (>) to filter rows where Sales is more than 1000.
Complete the code to undo the last applied step by removing it from the steps list.
let
Source = Excel.CurrentWorkbook(){[Name="SalesData"]}[Content],
RemovedLastStep = List.RemoveLastN(#"PreviousSteps", [1])
in
RemovedLastStepRemoving 1 step undoes the last applied step.
Fix the error in the code that tries to rename a column but uses the wrong function.
let
Source = Excel.CurrentWorkbook(){[Name="SalesData"]}[Content],
RenamedColumns = Table.[1](Source, "OldName", "NewName")
in
RenamedColumnsRenameColumn causes syntax error.Rename is not a valid function.The correct function to rename columns is Table.RenameColumns.
Fill both blanks to add a new applied step that changes the data type of the 'Date' column to date type.
let
Source = Excel.CurrentWorkbook(){[Name="SalesData"]}[Content],
ChangedType = Table.[1](Source, [2])
in
ChangedTypeRenameColumns instead of changing type.The correct function is Table.ChangeType and the second argument is a list of column-type pairs.
Fill all three blanks to add a step that filters rows where 'Region' equals 'West' and then undo that step.
let
Source = Excel.CurrentWorkbook(){[Name="SalesData"]}[Content],
FilteredRows = Table.SelectRows(Source, each [[1]] = [2]),
UndoStep = List.RemoveLastN([3], 1)
in
UndoStepWe filter by 'Region' column equal to 'West', then undo by removing the last step which is 'FilteredRows'.