Complete the code to create a bar chart visual in Power BI.
BarChart = [1](SalesData, 'Product', 'SalesAmount')
In Power BI, the bar chart visual is created using the BarChart function or visual name.
Complete the DAX measure to calculate total sales for the visual.
TotalSales = SUM([1][SalesAmount])The SUM function sums the SalesAmount column from the SalesData table.
Fix the error in the DAX formula to calculate average sales per product.
AvgSales = AVERAGE([1][SalesAmount])The AVERAGE function requires the table name before the column name. SalesData is the correct table.
Fill both blanks to filter sales data for the year 2023 and calculate total sales.
TotalSales2023 = CALCULATE(SUM(SalesData[SalesAmount]), SalesData[Year] [1] [2] 2023)
The correct syntax uses a single equals sign = for comparison and the CALCULATE function filters sales where the year equals 2023.
Fill all three blanks to create a measure that calculates total sales for products with sales greater than 1000.
HighSales = CALCULATE(SUM([1][SalesAmount]), FILTER([2], [3][SalesAmount] > 1000))
All blanks refer to the SalesData table. The FILTER function filters rows where sales are greater than 1000.