Complete the code to start creating a new dataflow in Power BI service.
Go to workspace and click on [1] to create a new dataflow.
To create a dataflow, you must select 'New dataflow' in the workspace.
Complete the code to add a new entity by connecting to a data source in the dataflow editor.
In the dataflow editor, click on [1] to connect to a new data source.To add new data, you click 'Add new entities' which lets you connect to data sources.
Fix the error in the M code to correctly reference the data source in the dataflow.
let
Source = [1]("https://example.com/data.csv")
in
SourceThe correct M function to load CSV content from a URL is Csv.Document.
Fill both blanks to filter rows and select columns in the dataflow query.
let
Source = Csv.Document("data.csv"),
FilteredRows = Table.SelectRows(Source, each [Sales] [1] 1000),
SelectedColumns = Table.SelectColumns(FilteredRows, [2])
in
SelectedColumnsThe filter uses '>' to select sales greater than 1000, and columns selected are Product and Sales.
Fill all three blanks to create a calculated column in the dataflow query.
let
Source = Csv.Document("data.csv"),
AddedColumn = Table.AddColumn(Source, [1], each [Sales] [2] [Cost]),
RenamedColumn = Table.RenameColumns(AddedColumn, [3])
in
RenamedColumnThe new column is named 'Profit', calculated as Sales minus Cost, then renamed using the correct mapping.