#1 Data Analytics Program in India
₹2,499₹1,499Enroll Now
5 min read

Understanding Bins for Histograms

Learn how to create and use bins for histogram visualizations

What are Bins?

Bins group continuous numbers into ranges.

Example:

  • Ages 0-10, 11-20, 21-30...
  • Prices $0-$50, $51-$100, $101-$150...

Why Use Bins?

  • Create histograms
  • See data distribution
  • Simplify number ranges
  • Find patterns

Creating Bins

  1. Right-click a measure
  2. Select "Create" → "Bins"
  3. Set bin size
  4. Click OK

Bin Size

Original DataBin SizeResult
1, 5, 12, 18, 25100-10: 2 items, 10-20: 2 items, 20-30: 1 item

Creating a Histogram

Steps:

  1. Create bins for your measure
  2. Drag bins to Columns
  3. Drag same measure (COUNT) to Rows
  4. You have a histogram!

Example: Age Distribution

  1. Create bins for Age (size: 10)
  2. Drag Age (bin) to Columns
  3. Drag Age to Rows (set to COUNT)

Result shows how many people in each age range.

Choosing Bin Size

Bin SizeResult
Too smallToo many bars, hard to read
Too bigLoses detail
Just rightClear pattern visible

Tip: Start with auto-suggested size, then adjust.

Editing Bins

  1. Right-click the bin field
  2. Select "Edit"
  3. Change bin size
  4. Click OK

Histogram Reading

Count | 5 | ████ 4 | ████ ████ 3 | ████ ████ ████ 2 | ████ ████ ████ ████ 1 | ████ ████ ████ ████ ████ +---------------------------- 0-10 10-20 20-30 30-40 40-50 Age

This shows most people are age 10-30.

Common Uses

  • Age distribution
  • Price ranges
  • Test score ranges
  • Transaction amounts
  • Time durations

Tips

  1. Use round bin sizes (10, 50, 100)
  2. Aim for 5-15 bins
  3. Check distribution shape
  4. Adjust size for clarity

Distribution Shapes

  • Normal: Bell curve, most in middle
  • Skewed: Most on one side
  • Uniform: Even across all bins

Summary

Bins group numbers into ranges. Create bins, drag to columns, count to rows = histogram. Adjust bin size for best view!