Skip to content
Edition NigeriaGlobal
Country: Mexico

You are in the Mexico edition. Type your country to switch.

The Americas

Set up your profile

You are learning in the Mexico edition, with examples in pesos and from Mexico.

Financial data and spreadsheets · Lesson 7 of 8

Pivot tables for financial data

A pivot table turns a long list of rows, such as trades, dividends or daily returns, into a summary by category and period in a few clicks. It works best on tidy data: one row per record and one column per field.

Intermediate8 min read5 steps

This lesson is complete in writing. A video for it is on its way.

What you will learn

  • By the end you can lay out financial records as tidy data ready for a pivot table.
  • You can build a pivot table that sums dividends by year and sector.
  • You can summarise a portfolio by asset class and compare it with a target mix.
  • You can avoid the traps of simple averages, text numbers and totals that do not match.

Key terms in this lesson

Pivot table
A spreadsheet tool that summarises a long table by groups, such as totals by year and sector.
Tidy data
A table with one row per record, one column per field and no merged cells or subtotals mixed in.
Concentration risk
The risk that comes from having a large part of a portfolio or index in a few holdings or one theme.
Asset allocation
How you split your money between asset classes such as shares, bonds and cash.
Rebalancing
Adjusting your portfolio back to your target mix after market moves change it.
Mean
The sum of a set of values divided by how many values there are. Often just called the average.
Weighted average
An average in which each value counts in proportion to a weight, such as its share of a portfolio.

Step 1 of 5

From 240 rows to five lines

Opening this step…

Step 2 of 5

Tidy data comes first

This step opens when you finish the one above.

Step 3 of 5

Building the first pivot: dividends by year and sector

This step opens when you finish the one above.

Step 4 of 5

Summarising a portfolio by asset class

This step opens when you finish the one above.

Step 5 of 5

Averages, totals and other traps

This step opens when you finish the one above.

Key takeaways

The key takeaways open when you finish every step.

Lesson quiz

5 questions. You need 85% to pass.

The quiz opens when you finish every step.

Read first

Stockertim Learn is education. It explains how investing works and never recommends buying or selling anything.

Up next

Financial data & analyticsCharts done right, and spotting …Read nowCharts done right, and spotting misleading chartsFinancial data & analytics · Intermediate · 15 minFinancial data & analyticsDistributions and fat tailsRead nowDistributions and fat tailsFinancial data & analytics · Intermediate · 15 minFinancial data & analyticsRegression and betaRead nowRegression and betaFinancial data & analytics · Intermediate · 15 minFinancial data & analyticsCorrelation against causationRead nowCorrelation against causationFinancial data & analytics · Intermediate · 15 minDerivatives marketsEnergy markets: oil, gas and powerRead nowEnergy markets: oil, gas and powerDerivatives markets · Advanced · 15 minCreative & media productionProduction, trafficking and appr…Read nowProduction, trafficking and approvalsCreative & media production · Intermediate · 5 minStrategy & managementFive Forces and industry analysisRead nowFive Forces and industry analysisStrategy & management · Intermediate · 15 minMedia strategy & planningGRPs, TRPs and impressionsRead nowGRPs, TRPs and impressionsMedia strategy & planning · Intermediate · 5 minMarket operationsMargin and risk desks in operati…Read nowMargin and risk desks in operationsMarket operations · Intermediate · 15 minRisk, governance & ethicsEthical decision-making: a step-…Read nowEthical decision-making: a step-by-step frameworkRisk, governance & ethics · Beginner · 15 minMexican marketsBolsa Mexicana de Valores (BMV)Read nowWhat is Bolsa Mexicana de Valores (BMV)?Mexican markets · Beginner · 15 minFinancial journalismAttribution and quotes: who says…Read nowAttribution and quotes: who says so, and whereFinancial journalism · Beginner · 15 min
English