Complete the code to load data from a CSV file in Power BI.
let Source = Csv.Document(File.Contents([1]),[Delimiter=",", Columns=5, Encoding=1252, QuoteStyle=QuoteStyle.None]) in Source
In Power Query M language, file paths must be given as text strings with quotes, so "data.csv" is correct.
Complete the code to rename a column in Power Query.
Table.RenameColumns(Source, [1])Table.RenameColumns expects a list of pairs inside double curly braces, so {{"OldName", "NewName"}} is correct.
Fix the error in the DAX measure to calculate total sales.
Total Sales = SUM([1][SalesAmount])The table name must match the data model exactly. 'Orders' is the correct table name containing SalesAmount.
Fill the blank to filter sales data for the year 2023 in DAX.
Filtered Sales = CALCULATE(SUM(Sales[Amount]), Sales[Year] [1] 2023)
To filter for the year 2023, use the equals sign '=' for the condition.
Fill all three blanks to create a measure that calculates average sales per customer in DAX.
Avg Sales per Customer = DIVIDE(SUM([1][SalesAmount]), DISTINCTCOUNT([2][[3]]))
The measure sums sales from the Sales table, counts distinct CustomerID from Customers table, then divides.