Using PivotTables with tabular data
These recipes explain how to do fundamental operations with PivotTables against a tabular model. You will create slicers in Excel. You will then see how to sort and filter the data within Excel that is connected to your model.
Using Slice, Sort, and Filter
In this recipe, you will learn how to insert a slicer, filter your data, and sort the data in an Excel PivotTable.
How to do it...
Connect to the model as described in the Connecting to Excel from SQL Server Data Tools recipe.
On the Analyze menu, click on Insert Slicers to bring up the Insert Slicers window:
Scroll down and select the LIGHT_CONDITION checkbox and click OK:
A new Slicer menu is created and added to the worksheet:
To use the slicer to filter the data, select the Dawn condition:
To select multiple filters, click on the icon to enable the selection of more than one filter:
Select Dawn, Daylight, and Dusk to filter for those three conditions:
To clear the selection, click on the icon to...