Excel & Power BI for data analysts
The Excel formulas, pivot tables and Power BI basics that analyst interviews test — with a small dashboard project.
What analyst interviews check
Most data analyst and MIS roles test three things: Excel (formulas and pivots), SQL (see our SQL from zero tutorial) and a dashboard tool — usually Power BI or Tableau.
Excel formulas you must know
Definition: Lookup functions search for a value in one range and return a corresponding value from another range.
How it works: VLOOKUP(value, table, col_index, FALSE) searches the first column of a table and returns the value from a given column (exact match with FALSE). XLOOKUP(value, lookup_range, return_range, if_not_found) can look in any direction, defaults to exact match and handles missing values.
Example: Find a city's revenue: =XLOOKUP("Chennai", B2:B6, F2:F6) → 240.
🧒 In simple words
| Formula | Use | Example |
|---|---|---|
| SUM / AVERAGE | totals and means | =SUM(B2:B100) |
| COUNTIF / SUMIF | count or add with a condition | =SUMIF(A:A,"Pune",C:C) |
| IF | decide | =IF(C2>=50000,"High","Normal") |
| XLOOKUP / VLOOKUP | find a value from another table | =XLOOKUP(E2,A:A,C:C) |
| INDEX + MATCH | flexible lookup | =INDEX(C:C,MATCH(E2,A:A,0)) |
| TEXT / LEFT / TRIM | clean text | =TRIM(A2) |
| IFERROR | hide errors | =IFERROR(XLOOKUP(…),"Not found") |
Lock a cell in a formula with $ ($B$1) so it doesn't move when you copy the formula down.
Pivot tables in 4 steps
Definition: A pivot table is an interactive summary table that groups, aggregates and reorganises large data sets by dragging fields into rows, columns, values and filters.
How it works: It computes sums, counts, averages or percentages per group without formulas, and updates when the source data is refreshed. Power BI and SQL GROUP BY are the same idea.
Example: Revenue by city (rows) and product (columns).
🧒 In simple words
- Click inside your data → Insert → PivotTable.
- Drag a category (City) to Rows.
- Drag a number (Sales) to Values (it sums by default).
- Drag a date to Columns or a Filter to slice it.
Clean data before analysis
- Remove duplicates (Data → Remove Duplicates).
- Split columns (Text to Columns).
- Make every column one type (dates as dates, numbers as numbers).
- Turn the range into a Table (Ctrl+T) so formulas grow with the data.
Power BI basics
Definition: DAX (Data Analysis Expressions) is the formula language of Power BI; a measure is a DAX calculation evaluated on the fly in the context of each visual (filters, slicers, rows).
How it works: Unlike a calculated column (computed once per row and stored), a measure is recalculated for the current filter context. CALCULATE changes that context, e.g. to compare with last year.
Example: Total Sales = SUM(Sales[Amount]) shows the total for whatever city or month is selected.
🧒 In simple words
| Step | What you do |
|---|---|
| Get data | load Excel/CSV |
| Power Query | clean: remove columns, fix types, merge tables |
| Model | connect tables by keys (e.g. CustomerID) |
| DAX | write measures like Total Sales = SUM(Sales[Amount]) |
| Report | add charts, cards, slicers |
| Publish | share the dashboard online |
3 DAX measures to know
Total Sales = SUM(Sales[Amount])
Orders = COUNTROWS(Sales)
Sales LY = CALCULATE([Total Sales], SAMEPERIODLASTYEAR('Date'[Date]))Total Sales = 12,40,000 Orders = 3,180 Sales LY = 10,95,000
Mini project — sales dashboard (one evening)
- Download any public sales dataset (CSV).
- Clean it in Power Query.
- Build: 3 cards (sales, orders, average order), a line chart by month, a bar chart by city, a slicer for category.
- Write 3 insights at the top ("Pune grew 18% in Q3").
- Put a screenshot and link in your resume and GitHub.
Interview questions
- VLOOKUP vs XLOOKUP — XLOOKUP can look left, defaults to exact match and handles errors.
- What is a pivot table? — a quick summary of large data by groups.
- Calculated column vs measure (Power BI) — a column is computed row by row and stored; a measure is computed on the fly for the visual.
- How do you handle missing data? — find it, understand why, then remove, fill or flag it.