Bins

A Bin is a Dimension. Unlike Groups and Sets, Bins are based on a Measure. The purpose of Bins is to group the different values of a Measure in bins.

Bins have a special icon: .

As always, the best way to understand is with examples. Let's create Bins with Sample Superstore:

  1. Right-click on Discount, navigate to Create, then click on Bins...
  2. A new window opens where you can edit the Bin. Keep the name Discount (bin). The size of the bin is automatically suggested by Tableau, but in our case, we want to see the reparation by 10%. Change the size of the Bin to 0,1. Here's how your Bin configuration window should look:
  1. Click on OK. A new Dimension is created. You should find the Bin in your data source, as shown in the following screenshot:

  1. Let's use it. Double-click on Number of Records, then on Discount (bin). You can now easily see that the majority of the orders have less than a 10% discount, or between 20% and 30%. Here's the final result:

With Groups, Sets, and Bins, we've seen three of the five field-creation capabilities. The last two, Calculated Field and Parameter, are even more interesting than those we just saw. But that's for Chapter 10An Introduction to Calculations and Chapter 11, Analytics and Parameters.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.90.182