Complete the code to create a measure that calculates the total sales for the waterfall chart.
Total Sales = SUM([1][SalesAmount])The measure sums the SalesAmount column from the SalesData table, which is the correct source for sales values in the waterfall chart.
Complete the code to calculate the running total for the waterfall chart.
Running Total = CALCULATE(SUM(SalesData[SalesAmount]), FILTER(ALLSELECTED(SalesData), SalesData[Date] <= [1][Date]))The running total sums sales up to the current date, so the filter compares dates using the Date column.
Fix the error in the measure that calculates the change between periods for the waterfall chart.
Change = SUM(SalesData[SalesAmount]) - CALCULATE(SUM(SalesData[SalesAmount]), PREVIOUSMONTH([1][Date]))The PREVIOUSMONTH function requires a date column to calculate the previous period correctly.
Fill both blanks to create a measure that calculates the cumulative change for the waterfall chart.
Cumulative Change = CALCULATE(SUM(SalesData[SalesAmount]), FILTER(ALL(SalesData), SalesData[Date] [1] MAX(SalesData[Date]) && SalesData[Date] [2] MIN(SalesData[Date])))
The filter keeps dates less than or equal to the max date and greater than or equal to the min date to calculate cumulative change correctly.
Fill all three blanks to create a measure that calculates the net change excluding a specific category for the waterfall chart.
Net Change Excl = CALCULATE(SUM(SalesData[SalesAmount]), SalesData[Category] [1] "[2]", FILTER(ALL(SalesData), SalesData[Date] [3] MAX(SalesData[Date])))
The measure excludes the 'Electronics' category using <> (not equal) and filters dates up to the max date with <=.