Resources / Data & AI
Free to readData & AI⏱ 4 min read

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

📖 Lookup functions (VLOOKUP / XLOOKUP)

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

FormulaUseExample
SUM / AVERAGEtotals and means=SUM(B2:B100)
COUNTIF / SUMIFcount or add with a condition=SUMIF(A:A,"Pune",C:C)
IFdecide=IF(C2>=50000,"High","Normal")
XLOOKUP / VLOOKUPfind a value from another table=XLOOKUP(E2,A:A,C:C)
INDEX + MATCHflexible lookup=INDEX(C:C,MATCH(E2,A:A,0))
TEXT / LEFT / TRIMclean text=TRIM(A2)
IFERRORhide errors=IFERROR(XLOOKUP(…),"Not found")
💡 Tip

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

📖 Pivot table

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

  1. Click inside your data → Insert → PivotTable.
  2. Drag a category (City) to Rows.
  3. Drag a number (Sales) to Values (it sums by default).
  4. 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

📖 DAX measure

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

StepWhat you do
Get dataload Excel/CSV
Power Queryclean: remove columns, fix types, merge tables
Modelconnect tables by keys (e.g. CustomerID)
DAXwrite measures like Total Sales = SUM(Sales[Amount])
Reportadd charts, cards, slicers
Publishshare the dashboard online

3 DAX measures to know

DAX
Total Sales = SUM(Sales[Amount])
Orders = COUNTROWS(Sales)
Sales LY = CALCULATE([Total Sales], SAMEPERIODLASTYEAR('Date'[Date]))
▶ Output
Total Sales  = 12,40,000
Orders       = 3,180
Sales LY     = 10,95,000

Mini project — sales dashboard (one evening)

  1. Download any public sales dataset (CSV).
  2. Clean it in Power Query.
  3. Build: 3 cards (sales, orders, average order), a line chart by month, a bar chart by city, a slicer for category.
  4. Write 3 insights at the top ("Pune grew 18% in Q3").
  5. 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.

Further references

🔥Join the free 30-Day Placement ChallengeOne resource and one task a day — from resume to offer.