Complete the code to create a bar chart showing sales by category.
SUM([Sales]) AS [1]The alias TotalSales clearly describes the sum of sales, making the chart easier to understand.
Complete the code to filter data for the year 2023 in a line chart.
YEAR([Order Date]) = [1]Filtering for the year 2023 ensures the chart shows data only for that year.
Fix the error in the calculation to show average profit per region.
AVG([1]) AS AverageProfitUsing [Profit] with brackets is the correct syntax in Tableau calculated fields.
Fill both blanks to create a calculated field that shows sales growth percentage.
([[1]] - [[2]]) / [[2]] * 100
The formula calculates growth by subtracting previous year sales from current year sales, then dividing by previous year sales.
Fill all three blanks to create a filter that shows only top 5 products by sales.
RANK(SUM([[1]])) <= [2] AND [[3]] IS NOT NULL
This filter ranks products by sales and keeps only the top 5 products with non-null names.