EN VI

What Is Data Analysis? 5 Steps With a Real Example

By ··7 min read

Short answer

Data analysis is the process of turning a business question into a number or chart you can trust. It has five steps. We define the question, get the data, clean it, analyse it and explain the result. Most mistakes happen at the first and third steps, where a vague question or an untrusted row quietly changes the answer.

Many people think data analysis means building charts. In practice the charts come last. On a table with thousands of orders, the hard part is knowing which question to answer and which rows to trust. To see how the work fits together, we follow one small case through five steps. A manager asks, "How did October go compared with September?" The numbers come from an orders table with 15 rows, so you can check every figure by hand.

Step 1: turn the request into a question

"How did October go" can mean revenue, the number of orders or the number of customers. This is a definition problem, and each reading gives a different number. We choose revenue from paid orders as the main figure. We also track the number of orders, because revenue alone can hide a change in volume.

Step 2: get the data and check its size

We need one row per order, with the date, the amount and the status. The orders table has all three. Before we use it, we count the rows and the distinct order IDs. If the two numbers differ, some orders appear twice.

SELECT COUNT(*) AS n_rows, COUNT(DISTINCT order_id) AS n_orders
FROM orders;
-- n_rows = 15, n_orders = 15

Both numbers are 15, so every row is one order.

Step 3: clean the rows you cannot count

One order, number 14, has the status cancelled and an amount of 9,000,000. If we leave it in, October shows 7 orders and 95,000,000. If we keep only paid orders, October shows 6 orders and 86,000,000. The choice moves the answer by 9 million, so we write it down as a rule. Only status = 'paid' counts as a sale.

Step 4: analyse

To compare the two months, we group the paid orders by month. We add the average order value, because it explains how revenue and order count can move in different directions.

SELECT substr(order_date, 1, 7) AS month
     , COUNT(*) AS n_orders
     , SUM(total_amount) AS revenue
     , SUM(total_amount) / COUNT(*) AS avg_order
FROM orders
WHERE status = 'paid'
GROUP BY 1
ORDER BY 1;
MonthOrdersRevenueAverage order
2026-09872,000,0009,000,000
2026-10686,000,00014,333,333

Revenue rose by 19.4%, but the number of orders fell by 25%. One order of 20,000,000 makes up 23% of October revenue. So the growth rests on a few large orders, not on more buyers.

Step 5: explain the result

A good answer starts with the number and ends with the caveat. For this case we could write the following. "October revenue from paid orders was 86 million, up 19% on September. Orders fell from 8 to 6. One 20 million order makes up 23% of the month, so the growth rests on a few large orders." A manager can act on that sentence, and a colleague can check it against the table.

The five steps at a glance

StepWhat we doIn this case
1Define the questionRevenue from paid orders, plus order count
2Get the data and check its size15 rows, 15 distinct order IDs
3CleanExclude the cancelled order
4AnalyseGroup by month, add average order
5ExplainNumber first, caveat second

Frequently asked questions

What is data analysis in simple terms?

Data analysis is the work of answering a question with data. You define the question, get and clean the data, calculate the answer and explain it in a way someone can act on.

What are the steps of data analysis?

The usual steps are to define the question, collect the data, clean it, analyse it and communicate the result. Many teams add a check of the result before they share it.

Do I need to code to do data analysis?

Sometimes not. Small tables can be analysed in a spreadsheet. SQL or Python becomes useful when the data sits in a database or is too large for a spreadsheet to handle comfortably.

Keep learning, step by step.

Each lesson in Learn has a business context, a runnable example and a result check, so you practise this habit on real questions.