Free datasets, step-by-step Excel, SQL and Power BI exercises with the answers to check against, a beginner roadmap and two cheat sheets. No sign-up needed.
About the data. All datasets are sample (synthetic) data made for training. They contain no real customers, employers or clients. The numbers are realistic but invented, so they are safe to share and practise with. You may use them freely for learning and teaching.
Want guidance and feedback along the way? See the courses page or our courses.
The five finished projects built on this data are on the Projects page.
Open retail_sales_2025.csv in Excel. The columns are: A Order ID, B Order Date, C Month, D Region, E Category, F Channel, G Units, H Unit Price (NGN), I Unit Cost (NGN). Do each exercise, then open the answer to check.
In J1 type Revenue and in K1 type Profit. In J2 enter =G2*H2 and in K2 enter =G2*(H2-I2), then fill both down to row 3001. Add a total with =SUM(J2:J3001) and =SUM(K2:K3001).
List the five regions in a small table and use =SUMIFS(J2:J3001, D2:D3001, "Lagos") for each, changing the region name.
Use =COUNTIFS(F2:F3001, "Online", D2:D3001, "Lagos").
Select the data and choose Insert, then PivotTable. Put Category in Rows and Revenue and Profit in Values (Sum). Next to the pivot, add a margin column: profit divided by revenue, formatted as a percentage.
Build a second PivotTable with Month in Rows and Revenue in Values, then insert a line chart.
Use any SQL tool that can import a CSV, for example the free DB Browser for SQLite. Import retail_sales_2025.csv as a table called sales and rename the columns to: order_id, order_date, month, region, category, channel, units, unit_price, unit_cost. Try each query yourself first.
SELECT COUNT(*) AS orders
FROM sales;
SELECT SUM(units * unit_price) AS revenue
FROM sales;
SELECT region,
SUM(units * unit_price) AS revenue
FROM sales
GROUP BY region
ORDER BY revenue DESC;
SELECT category,
ROUND(100.0 * SUM(units * (unit_price - unit_cost))
/ SUM(units * unit_price), 1) AS margin_pct
FROM sales
GROUP BY category
ORDER BY margin_pct DESC;
SELECT region, COUNT(*) AS online_orders
FROM sales
WHERE channel = 'Online'
GROUP BY region
HAVING COUNT(*) > 200
ORDER BY online_orders DESC;
WHERE filters rows before grouping; HAVING filters the groups afterwards.SELECT month,
revenue,
ROUND(100.0 * (revenue - LAG(revenue) OVER (ORDER BY month))
/ LAG(revenue) OVER (ORDER BY month), 1) AS growth_pct
FROM (
SELECT month, SUM(units * unit_price) AS revenue
FROM sales
GROUP BY month
) AS m
ORDER BY month;
LAG looks at the previous row, here the previous month.This is a small star schema: one table of loans (fact_loans) and three lookup tables for branches, products and dates.
fact_loans.csv, dim_branch.csv, dim_product.csv and dim_date.csv.fact_loans[branch_id] to dim_branch[branch_id], fact_loans[product_id] to dim_product[product_id] and fact_loans[disbursed_date] to dim_date[date]. Mark dim_date as the date table.measures.dax (Total Disbursed, Outstanding Balance, Loan Count, PAR30 % and the others).| SUMIFS | Add values that meet conditions: =SUMIFS(J:J, D:D, "Lagos") |
|---|---|
| COUNTIFS | Count rows that meet conditions: =COUNTIFS(F:F, "Online", D:D, "Lagos") |
| AVERAGEIFS | Average values that meet conditions. |
| IF | Choose between two results: =IF(K2>0, "Profit", "Loss") |
| XLOOKUP | Find a value in one column and return another: =XLOOKUP(A2, Sheet2!A:A, Sheet2!B:B, "Not found") |
| INDEX and MATCH | An older way to look values up that also works in earlier Excel versions. |
| TEXT | Format a value as text: =TEXT(B2, "mmm yyyy") |
| TRIM | Remove extra spaces from text before you analyse it. |
| PivotTable | Insert, then PivotTable: summarise thousands of rows by any column in seconds. |
| SELECT ... FROM | Choose columns from a table. |
|---|---|
| WHERE | Keep only the rows that match a condition. |
| GROUP BY | Summarise rows by a column, with COUNT, SUM, AVG, MIN or MAX. |
| HAVING | Filter the groups after summarising. |
| ORDER BY | Sort the results. Add DESC for biggest first. |
| JOIN | Combine two tables on a shared column. INNER JOIN keeps matches only; LEFT JOIN keeps every row from the left table. |
| CASE WHEN | Create a column with if-then logic. |
| Window functions | LAG, RANK and running totals with OVER (...) compare a row with others without collapsing rows. |
Everything on this page is free without signing up. If you would like an email when we publish new guides, datasets and exercises, add your address. We send practical learning material only, and you can unsubscribe at any time by replying to any email.
These exercises are the start. In our classes you work through projects with an instructor and get feedback on what you build.