Hierarchies of the Product, Time, and Customer Dimensions
Hierarchies define the structured relationships within each dimension, allowing for these drill-down and roll-up operations. They map lower-level (child) members to higher-level (parent) members.
Let's illustrate typical hierarchies for \\l example dimensions:
Product Dimension Hierarchy:
All Products (Highest Level / Grandparent)
Department (Parent, e.g., "Electronics," "Apparel")
Category (Child of Department, but Parent of Sub-Category; e.g., "Laptops," "Smartphones" under "Electronics")
Sub-Category (Child of Category, but Parent of Product Name; e.g., "Gaming Laptops," "Business Laptops" under "Laptops")
Product Name (Lowest Level / Child, e.g., "Dell XPS 15," "MacBook Air M3")
Optional: SKU (Stock Keeping Unit) - even finer detail
Time Dimension Hierarchy:
Year (Highest Level / Grandparent, e.g., "2026," "2026")
Half-Year / Semester (Parent, e.g., "H1 2026," "H2 2026")
Quarter (Child of Half-Year, but Parent of Month; e.g., "Q1 2026," "Q2 2026")
Month (Child of Quarter, but Parent of Week; e.g., "January," "February")
Week (Child of Month, but Parent of Day; e.g., "Week 1," "Week 2")
Day (Lowest Level / Child, e.g., "2026-07-30")
In your initial example, your cube's granularity for Time is at the Quarter level. This allows you to roll up to "Half-Year" or "Year," or drill down to "Month," "Week," and "Day."
Customer Dimension Hierarchy (Location-based):
All Customers / All Locations (Highest Level / Grandparent)
Country (Parent, e.g., "Australia," "New Zealand")
State / Province (Child of Country, but Parent of City; e.g., "New South Wales," "Victoria")
City (Child of State, but Parent of Suburb; e.g., "Sydney," "Melbourne")
Suburb / Postcode (Child of City, but Parent of Customer Address; e.g., "Pyrmont 2009")
Customer Address / Individual Customer (Lowest Level / Child, e.g., "123 Main St, Pyrmont")
Cube's granularity for Customer is at the City level. This means you can roll up to "State" or "Country," or drill down to "Suburb" and individual "Customer Addresses."
These hierarchies are critical because they define the paths for aggregation and disaggregation within your data cube, enabling powerful OLAP analysis.