Complete the code to load data into Power Query by selecting the correct button.
Click the [1] button to import data from an Excel file.
The Get Data button is used to import data into Power Query from various sources like Excel files.
Complete the code to rename a column in Power Query using the correct menu option.
Right-click the column header and select [1] to change the column name.
To rename a column, you right-click the header and choose Rename.
Fix the error in the step name by selecting the correct syntax for referencing the previous step in Power Query.
ChangedType = Table.TransformColumnTypes([1], {{"Age", Int64.Type}})
The previous step is usually named Source with a capital S in Power Query. It is case-sensitive.
Fill both blanks to filter rows where the 'Status' column equals 'Active' in Power Query.
FilteredRows = Table.SelectRows(Source, [1][[2]] = "Active")
The each keyword is used to define a function for filtering, and Status is the column name to check.
Fill all three blanks to create a new column 'AgeGroup' that categorizes ages in Power Query.
AddColumn = Table.AddColumn(Source, "AgeGroup", each if [1] < 18 then [2] else [3])
The expression uses the age column [Age] to check if less than 18, then assigns the text "Minor", else "Adult".