The Slicing operation of a data set involves creating a smaller data set by filtering one dimension. It helps in analyzing the relationship between a given dimension and all the remaining variables of the data set.
Consider the data set, All-Sales, which contains the following dimensions −
The following screenshot shows a chart with the entire data set projecting all the variables.
Now, let’s find out the Sales value for each value in the category dimension. For this, we can go to Editor → Visualization, and keep the dimension Category in the vertical axis.
Then keep Sales in the horizontal axis. Also choose the Color By option as sales.
This will produce the following screenshot with the diagram showing the sales data for each category.