Complete the code to calculate total sales fixed at the year level.
{ FIXED YEAR([1]) : SUM([Sales]) }The FIXED LOD expression fixes the aggregation at the year of the Order Date, so we use Order Date to specify the date dimension.
Complete the code to calculate average sales fixed at the month level.
{ FIXED DATETRUNC('month', [1]) : AVG([Sales]) }DATETRUNC('month', Order Date) truncates the date to the first day of the month, fixing the aggregation at the month level.
Fix the error in the LOD expression to calculate total profit fixed at the quarter level.
{ FIXED DATETRUNC('quarter', [1]) : SUM([Profit]) }DATETRUNC('quarter', Order Date) truncates the date to the first day of the quarter, fixing the aggregation at the quarter level.
Fill both blanks to calculate total sales fixed at the year and region level.
{ FIXED [1], [2] : SUM([Sales]) }Fixing at year and region means using YEAR([Order Date]) and Region as dimensions inside FIXED.
Fill all three blanks to calculate average profit fixed at the month, category, and region level.
{ FIXED [1], [2], [3] : AVG([Profit]) }The FIXED LOD fixes aggregation at month (using DATETRUNC), category, and region levels.