All posts · BI Reports

Creating Pivot Tables and Crosstabs in OTBI

Pivot tables (crosstab analyses) in OTBI transform row-based data into a matrix format — essential for period-over-period comparisons and multi-dimensional reporting.

Anurag Jangra · January 30, 2026 · 5 min read · ... views

What crosstab analyses are

A crosstab (pivot table) in OTBI displays measures as cells in a matrix, with row and column dimensions. Example: employees as rows, months as columns, and hours worked as values — giving a time-attendance matrix in a single view.

Creating a pivot view

  1. Create an OTBI analysis with your data columns
  2. Add a Pivot Table view: Edit Analysis → Views → Add View → Pivot Table
  3. In the pivot editor:
    • Drag dimensions to Rows (vertical axis)
    • Drag dimensions to Columns (horizontal axis)
    • Drag measures to Measures (cell values)

Common pivot layout example

Rows: Department Name Columns: Calendar Month (format: MMM-YY) Measures: Headcount, Average Salary

This gives a matrix where each cell shows headcount and average salary for a department in a specific month.

Grand totals and subtotals

Right-click a row/column dimension → Aggregation → Show Total. Configure position: before or after. For nested dimensions (Year → Quarter → Month), subtotals at the Quarter level are automatic if Quarter is in the column structure.

Handling dynamic column headers

When columns are time periods (months, quarters), the number of columns changes as new periods are added. OTBI handles this automatically — no template changes needed. This is a major advantage of OTBI pivot tables over BIP RTF templates where column counts are often fixed.

Conditional formatting in pivot cells

Right-click a measure column → Format Column → Conditional Format:

  • If Headcount < 5 → background red
  • If Variance > 10% → font green bold

These conditions apply to the entire measure column across all cells.

Drilling down in pivots

Configure column or row headers as drillable — clicking a quarter opens the monthly breakdown. Set up drill navigation via Edit Analysis → Interaction → Column Interactions → Drill in Place.

Exporting pivot tables

OTBI pivot tables export to Excel with the matrix structure preserved — rows, columns, and totals maintain their layout. This makes OTBI pivots particularly useful for finance teams who need Excel-compatible period reports.

Think Beyond the Implementation

Questions worth sitting with after reading this

01

Why is this architecture appropriate for this specific context — and where would it be the wrong choice?

02

What assumptions did we make that aren't stated explicitly? What happens if those assumptions are wrong?

03

What would break first if the requirements changed — volume doubled, a third system was added, or the deadline halved?

04

What alternatives did we reject, and why? Was the decision made on evidence — or habit?

AJ
Anurag Jangra
Oracle Cloud PaaS Consultant · OIC & VBCS Specialist

4.5+ years delivering enterprise Oracle Cloud integrations and VBCS applications across manufacturing, IT services, and financial sectors. OCI Certified — writes about real-world OIC, VBCS, SQL, and BI Publisher patterns from production experience.

Chat on WhatsApp