Complete the code to create a dataflow that extracts data from a source.
let Source = [1] in Source
The Excel.Workbook(File.Contents()) function loads data from an Excel file, which is a common first step in dataflows.
Complete the code to add a column that calculates sales tax in the dataflow.
let AddedTax = Table.AddColumn(Source, "Tax", [1]) in AddedTax
The expression each [Sales] * 0.1 correctly calculates 10% tax on the Sales column.
Fix the error in the dataflow code that merges two tables.
let Merged = Table.NestedJoin(Table1, {"ID"}, [1], {"ID"}, "NewTable") in MergedThe Table.NestedJoin function requires the second table to join with. Here, Table2 is the correct table to join with Table1.
Fill both blanks to filter rows where Sales are greater than 1000 and select only the Sales and Region columns.
let Filtered = Table.SelectRows(Source, each [[1]] [2] 1000), Selected = Table.SelectColumns(Filtered, {"Sales", "Region"}) in Selected
To filter rows where Sales are greater than 1000, use [Sales] > 1000.
Fill all three blanks to create a dataflow step that groups data by Region, counts rows, and renames the count column to 'TotalSales'.
let Grouped = Table.Group(Source, {"[1]"}, {{"Count", each Table.RowCount([2]), type number}}), Renamed = Table.RenameColumns(Grouped, {{"Count", "[3]"}}) in RenamedThe data is grouped by Region. The row count is calculated on each group using Table.RowCount(_). Finally, the count column is renamed to TotalSales.