0
0
Power BIbi_tool~10 mins

Slicers (list, dropdown, between) in Power BI - Cell-by-Cell Formula Trace

Choose your learning style9 modes available
Sample Data

Sales data by date for the first five days of January 2024.

CellValue
A1Date
B1Sales
A22024-01-01
B2100
A32024-01-02
B3150
A42024-01-03
B4200
A52024-01-04
B5130
A62024-01-05
B6170
Formula Trace
CALCULATE(SUM(Sales[Sales]), FILTER(Sales, Sales[Date] >= StartDate && Sales[Date] <= EndDate))
Step 1: Sales[Date] >= StartDate
Step 2: Sales[Date] <= EndDate
Step 3: FILTER(Sales, Sales[Date] >= StartDate && Sales[Date] <= EndDate)
Step 4: SUM(Sales[Sales]) on filtered rows
Step 5: CALCULATE(...)
Cell Reference Map
    A       B
1 | Date  | Sales |
2 | 2024-01-01 | 100 |
3 | 2024-01-02 | 150 |
4 | 2024-01-03 | 200 |
5 | 2024-01-04 | 130 |
6 | 2024-01-05 | 170 |

Slicer controls: StartDate and EndDate (user selects these to filter dates)
The formula uses the Date and Sales columns. The slicer inputs StartDate and EndDate filter the Date column to select rows.
Result
    A       B       C
1 | Date  | Sales | Filtered Sales Sum |
2 | 2024-01-01 | 100 |                   |
3 | 2024-01-02 | 150 |                   |
4 | 2024-01-03 | 200 |                   |
5 | 2024-01-04 | 130 |                   |
6 | 2024-01-05 | 170 |       750         |

(Assuming slicer selected dates from 2024-01-01 to 2024-01-05)
The final result shows the total sales sum filtered by the slicer date range. Here, all dates are included, so sum is 750.
Sheet Trace Quiz - 3 Questions
Test your understanding
What does the FILTER function do in the formula?
AAdds all sales values together
BSelects rows where the date is between StartDate and EndDate
CChanges the date format
DCreates a new column with sales data
Key Result
CALCULATE with FILTER applies slicer-selected conditions to sum values within a date range.