Skip to content
GabineteTools for thinking

No. 2030Learning, coaching and goal setting

Goal Question Metric (GQM)

Weiss and others · 1984

Mobile pendant: cobalt blue disc above, three paper cones and stones tied under; next to it, a lot of loose pebbles.

The table / Model card · No. 2030 · Learning, coaching and goal setting

Goal Question Metric (GQM)

Start from what you need to know, not from the data you happen to have.

Also known as GQL (Goal, Question, Learning) Board

The essentials

What it is

What it solves

How do you choose metrics that actually inform a decision, instead of collecting large amounts of data that nobody can interpret?

When to use it

Use it when setting up a measurement programme, when a team collects metrics nobody uses, when evaluating a process change such as a new testing practice, or when stakeholders disagree on what 'better' means.

Where it comes from

GQM grew out of work at the University of Maryland and the Software Engineering Laboratory at NASA Goddard, after Basili supervised David Weiss's PhD on collecting valid software engineering data; Weiss drew on Albert Endres at IBM Germany. Basili and Weiss published the methodology in IEEE Transactions on Software Engineering in November 1984. Basili, Caldiera and Rombach later wrote the standard GQM description, and Basili and Fraunhofer researchers extended it to GQM+Strategies for business alignment.

Gianluigi Caldiera, H. Dieter Rombach and Victor R. Basili · 1984

How it works

Measurement only has meaning relative to a goal. GQM therefore starts with a precise goal template: analyse an object, for a purpose, with respect to a quality focus, from a viewpoint, in a context. Questions translate the goal into things that can be answered, often with hypotheses about expected values. Metrics are then chosen for each question; one metric may serve several questions. The structure works top-down for definition and bottom-up for interpretation: data rolls up to answers, and answers roll up to a judgement on the goal.

You need

Business or project goals, stakeholders and their viewpoints, process descriptions, available data sources, and time for goal-setting interviews.

You get

A GQM plan: documented goals, the questions and hypotheses for each, the metrics that answer them, a data collection plan and an analysis plan.

Case

Illustrative case

Quillon Bank's 30-developer mobile team adopts code review and wants to know if it helps. Goal: analyse the review process to evaluate its effect on defects from the release manager's viewpoint. Questions: Do fewer defects reach production? Does review slow delivery? Metrics: production defects per release, defects found in review, and lead time from commit to release. Over six releases, production defects fall from 14 to 6 per release while lead time grows from 3.1 to 3.6 days. The team keeps review and caps reviews at 24 hours to contain the delay.

A fictional company used to explain the model.

Caution

When to avoid it

  • Avoid it for a quick one-off check where the metric is obvious, or when goals are still unknown and the team needs exploratory analysis first.
  • It also adds overhead for tiny teams without a measurement need.

Common mistakes

  • Writing vague goals without object, purpose and viewpoint.
  • Starting from available metrics and inventing goals afterwards.
  • Defining too many questions.
  • Skipping interpretation, so data is gathered but never rolled up to the goal.

Known weaknesses

  • Defining goals and plans takes effort up front.
  • Original form does not link to business strategy; GQM+Strategies was added for that.
  • Can produce large plans if scope is not limited.
  • Less known outside software engineering.

How to apply it in 6 steps

How to apply it

Goal Question Metric (GQM)

6 steps

Use the arrow keys to move between steps, Home and End for the first and last, and Enter to fold or unfold the booklet.

View all 6 steps
  1. Set measurement goals

    Write each goal with object, purpose, quality focus, viewpoint and context.

  2. Derive questions

    Interview stakeholders and list questions, with hypotheses, that show whether each goal is met.

  3. Define metrics

    Select objective and subjective metrics that answer each question and check them for completeness.

  4. Plan data collection

    Specify who collects which data, when and how, in a GQM and measurement plan.

  5. Collect and validate

    Gather data and check its quality as the project runs.

  6. Interpret bottom-up

    Roll metrics up to answers and answers up to conclusions on the goals, then act.

Which decisions it helps with

Decision profile

A phased process to take action.

Keyboard: Tab to the sheet, use the arrows to explore the assessments and their questions, and press Escape to close the note.

IIdentity

Type of tool
Phased process
Decision stage
Plan the work, roles and deadlines
Discipline
Agile and software development
What it produces
A sequence of phases completed in order

IIIResources required

  • TimeWeeks or months
  • PeopleBetween “a small group (2 to 8)” and “a large workshop (12 or more)”
  • DataData collected for the purpose
  • ExpertiseWorks best with a facilitator
  • Time horizonA few months
  • ScopeOne team
  • FrequencyOccasionally
The team’s own knowledge is enough

IITen axes

The dot shows which end the model favours. A hollow dot means no clear preference.

  • DirectionmixedExecution
  • Top-downBottom-up
  • PeopleProcesses
  • Generate optionsNarrow down options
  • Step-by-step analysisIntuition and experience
  • A strict sequence of stepsA flexible framework
  • Protect what we haveTake a risk
  • Improve what we haveFundamental change
  • Inside the organisationOutside the organisation
  • Understand firstAct now

IVUseful when

Applicable traits

  • How it supports actionSet measurable targets and track progress
How was this profile calculated?

An automated system reads each model card and answers the same questions for every model. This profile has answers for 77 of 77. No answers are entered by hand.

A very high probability counts as “yes” and a very low one as “no”. Intermediate answers are hidden.

On the axes, mixed means the model favours neither end.

How it works →

Thinking space

Learning, coaching and goal setting

They make people grow: coaching (GROW), goals and measures of advancement, training and skills development.

Membership: 34 % · also “Workflow and delivery” (29 %)

View in the atlas of spaces →

Each point is a model. Distance reflects answers to the decision questions. Light points share this model’s space.

Similar models

Verified sources

Use the arrow keys to move between sources.

Original work

  1. Basili, V. R. and Weiss, D. M. (1984). A Methodology for Collecting Valid Software Engineering Data. IEEE Transactions on Software Engineering, SE-10(6).The paper Wikipedia cites as the origin of GQM. Crossref metadata confirms title, authors Basili and Weiss and November 1984 in IEEE TSE; the DOI resolves to IEEE Xplore.View source: A Methodology for Collecting Valid Software Engineering Data (opens in a new tab) ↗

Key development

  1. Basili, V. R., Caldiera, G. and Rombach, H. D. (n.d.). The Goal Question Metric Approach. University of Maryland / Universitat Kaiserslautern (encyclopedia chapter).The standard description of GQM. The PDF shows title and authors and defines the conceptual (goal), operational (question) and quantitative (metric) levels and the goal template; the PDF itself does not state a publication year.View source: The Goal Question Metric Approach (opens in a new tab) ↗
  2. Solingen, R. v. and Berghout, E. (2001). Integrating goal-oriented measurement in industrial software engineering: industrial experiences with and additions to the Goal/Question/Metric method (GQM). Proceedings Seventh International Software Metrics Symposium (METRICS).Seven years and 15 industrial measurement programmes; reports successes and failures and adds two missing elements to GQM: structured feedback sessions and a cost/benefit analysis of the measurement programme.View source: Integrating goal-oriented measurement in industrial software engineering: industrial experiences with and additions to the Goal/Question/Metric method (GQM) (opens in a new tab) ↗
  3. Solingen, R. v., Basili, V., Caldiera, G. and Rombach, H. D. (2002). Goal Question Metric (GQM) Approach. Encyclopedia of Software Engineering, Wiley.Updated reference entry on GQM; Crossref lists the title, the four authors and January 2002 in Wiley's Encyclopedia of Software Engineering.View source: Goal Question Metric (GQM) Approach (opens in a new tab) ↗

Critique

  1. Berander, P. and Jönsson, P. (2006). A goal question metric based approach for efficient measurement framework definition. Proceedings of the 2006 ACM/IEEE International Symposium on Empirical Software Engineering (ISESE).Argues GQM solves only part of the over-measurement problem: goals and questions still generate too many metrics, so it needs an added prioritisation step (tested in two industrial case studies).View source: A goal question metric based approach for efficient measurement framework definition (opens in a new tab) ↗

Wikipedia article (opens in a new tab) ↗