What Is OLAP (Online Analytical Processing) : Cube, Operations & Types
What Is OLAP (Online Analytical Processing) : Cube, Operations & Types
What Is OLAP (Online Analytical Processing) : Cube, Operations & Types
Analysts frequently need to group, aggregate and join data. These operations in
relational databases are resource intensive. With OLAP data can be pre-calculated
and pre-aggregated, making analysis faster.
OLAP databases are divided into one or more cubes. The cubes are designed in
such a way that creating and viewing reports become easy.
OLAP cube:
The OLAP Cube consists of numeric facts called measures which are categorized by
dimensions. OLAP Cube is also called the hypercube.
Usually, data operations and analysis are performed using the simple spreadsheet,
where data values are arranged in row and column format. This is ideal for two-
dimensional data. However, OLAP contains multidimensional data, with data
usually obtained from a different and unrelated source. Using a spreadsheet is not
an optimal option. The cube can store and analyze multidimensional data in a
logical and orderly manner.
A Data warehouse would extract information from multiple data sources and
formats like text files, excel sheet, multimedia files, etc.
The extracted data is cleaned and transformed. Data is loaded into an OLAP server
(or OLAP cube) where information is pre-calculated in advance for further analysis.
1. Roll-up
2. Drill-down
3. Slice and dice
4. Pivot (rotate)
1) Roll-up:
1. Reducing dimensions
2. Climbing up concept hierarchy. Concept hierarchy is a system of grouping
things based on their order or level.
• In this example, cities New jersey and Lost Angles and rolled up into country
USA
• The sales figure of New Jersey and Los Angeles are 440 and 1560
respectively. They become 2000 after roll-up
• In this aggregation process, data is location hierarchy moves up from city to
the country.
• In the roll-up process at least one or more dimensions need to be removed.
In this example, Quater dimension is removed.
In drill-down data is fragmented into smaller parts. It is the opposite of the rollup
process. It can be done via
This operation is similar to a slice. The difference in dice is you select 2 or more
dimensions that result in the creation of a sub-cube.
4) Pivot
In Pivot, you rotate the data axes to provide a substitute presentation of data.
Web OLAP (WOLAP) Web OLAP which is OLAP system accessible via
the web browser. WOLAP is a three-tiered
architecture. It consists of three components:
client, middleware, and a database server.
ROLAP
ROLAP works with data that exist in a relational database. Facts and dimension
tables are stored as relational tables. It also allows multidimensional analysis of
data and is the fastest growing OLAP.
MOLAP
MOLAP uses array-based multidimensional storage engines to display
multidimensional views of data. Basically, they use an OLAP cube.
• This kind of OLAP helps to economize the disk space, and it also remains
compact which helps to avoid issues related to access speed and
convenience.
• Hybrid HOLAP's uses cube technology which allows faster performance for
all types of data.
• ROLAP are instantly updated and HOLAP users have access to this real-time
instantly updated data. MOLAP brings cleaning and conversion of data
thereby improving data relevance. This brings best of both worlds.
Advantages of OLAP
• OLAP is a platform for all type of business includes planning, budgeting,
reporting, and analysis.
• Information and calculations are consistent in an OLAP cube. This is a crucial
benefit.
• Quickly create and analyze "What if" scenarios
• Easily search OLAP database for broad or specific terms.
• OLAP provides the building blocks for business modeling tools, Data mining
tools, performance reporting tools.
Disadvantages of OLAP
• OLAP requires organizing data into a star or snowflake schema. These
schemas are complicated to implement and administer
• You cannot have large number of dimensions in a single OLAP cube
• Transactional data cannot be accessed with OLAP system.
• Any modification in an OLAP cube needs a full update of the cube. This is a
time-consuming process
Summary:
• OLAP is a technology that enables analysts to extract and view business data
from different points of view.
• At the core of the OLAP, the concept is an OLAP Cube.
• Various business applications and other data operations require the use of
OLAP Cube.
• There are primary five types of analytical operations in OLAP 1) Roll-up 2)
Drill-down 3) Slice 4) Dice and 5) Pivot
• Three types of widely used OLAP systems are MOLAP, ROLAP, and Hybrid
OLAP.
• Desktop OLAP, Web OLAP, and Mobile OLAP are some other types of OLAP
systems.