Complete the code to remove duplicate rows in Power Query.
Table.Distinct([1])In Power Query, Table.Distinct(Source) removes duplicate rows from the original data table named Source.
Complete the DAX formula to calculate the total sales after filtering for the current year.
TotalSalesCY = CALCULATE(SUM(Sales[Amount]), YEAR(Sales[Date]) = [1])NOW() without extracting the year.The expression YEAR(TODAY()) dynamically gets the current year to filter sales data for this year.
Fix the error in this Power Query step to change the data type of the 'Sales' column to number.
Table.TransformColumnTypes(Source, [1])Number.Type.The correct syntax requires a list of lists: {{"Sales", type number}} to specify the column and its new type.
Fill both blanks to create a calculated column that flags sales above 1000 as 'High' and others as 'Low'.
SalesFlag = IF(Sales[Amount] [1] 1000, [2], "Low")
The condition checks if Sales[Amount] is greater than 1000, then returns "High", else "Low".
Fill all three blanks to create a measure that calculates average sales for the selected product category.
AvgSalesCategory = CALCULATE(AVERAGE(Sales[Amount]), Sales[Category] [1] [2], ALL(Sales[[3]]))
The measure filters sales where category equals "Electronics" and removes filters on the Category column for correct calculation.