Complete the code to set the dashboard to refresh every 5 minutes for better performance.
Dashboard.RefreshInterval = [1]Setting the refresh interval to 300 seconds (5 minutes) balances performance and usability by updating data regularly without overloading the system.
Complete the calculation to optimize the measure by limiting data aggregation to the current year.
SUM(IF YEAR([Order Date]) = [1] THEN [Sales] ELSE 0 END)
Using YEAR(TODAY()) dynamically filters data to the current year, improving performance by reducing unnecessary data processing.
Fix the error in the filter expression to improve dashboard load time.
[Region] = [1]String values in Tableau filters must be enclosed in single quotes to be valid.
Fill both blanks to create a calculated field that only sums sales for the last 6 months.
IF DATEDIFF('month', [Order Date], TODAY()) [1] 6 THEN SUM([Sales]) ELSE 0 [2]
The condition checks if the order date is within the last 6 months using <= 6, and the IF statement ends with END.
Fill all three blanks to create a calculated field that returns average sales per customer only for customers with sales above 1000.
IF AVG([Sales]) [1] [2] THEN AVG([Sales]) [3] NULL END
The condition checks if average sales is greater than 1000, then returns average sales, otherwise NULL.