Conjoint

MaxDiff

Best-worst scaling. Across a sequence of tasks, respondents see a small subset of items and pick the **best** and **worst**. Items live in an uploaded design asset, not the YAML — `type: maxdiff` references the design by name; the platform handles task generation, version assignment, and per-respondent rendering.

What MaxDiff is

A maxdiff question is a multi-task best-worst exercise. Each task shows a small subset of items (typically 4 or 5) drawn from a larger pool; the respondent picks the best item and the worst item from that subset. Across many tasks, the platform produces a preference ranking of the full item pool.

The whole exercise renders as a single question. Authors don’t write the per-task subsets — those are generated from a design asset (a CSV / XLSX file the platform parses) and surfaced one task at a time at runtime.

- qid: QImportance
    type: maxdiff
    text: Pick the most important and the least important.
    design: feature_importance_v2
    versionSource: systemBalanced

That’s the minimal shape — design: names the uploaded asset, and versionSource: systemBalanced lets the engine assign a balanced design version to each respondent (no hidden question, no - script:). Use an expression form only when you need to cross the version with a treatment cell or a panel source — see Version assignment.

QImportance maxdiff · table
Task 1 of 12

Pick the most important and the least important.

Most important Item Least important
Battery life
Camera quality
Screen brightness
Storage capacity

The author surface

Every property a MaxDiff question accepts. Items / tasks-per- respondent / items-per-task all live in the design asset — not authorable in YAML.

PropertyTypeNotes
designstringRequired. Name of the uploaded design asset. The platform looks it up in the Designs panel store.
versionSourcereserved keyword | expressionRequired. Recommended default: systemBalanced — the engine assigns a balanced version, no hidden question needed. Also accepts systemRandom (plain random) or any DSL expression when you need to control assignment yourself. Same mechanism as CBC — full details in Version assignment.
styleenumtable (default) or stacked. See Variants below.
bestLabelstringHeader / button label for the best column.
worstLabelstringHeader / button label for the worst column.
noneOptionboolShow a “None” option.
noneLabelstringLabel for the none option.
taskLabelstringPer-task heading template.
followUpcomma-separated qidsOther questions rendered inside each task.

Plus the standard shell: qid, type, title, text, instruction, required, visibility, default.errors, validation, readonly, if.

Properties that don’t apply

  • No options: / options.from: — the items live in the design asset’s items table.
  • No anchor: — anchored MaxDiff (where respondents also judge whether each item is “important / not important” on an absolute scale) isn’t a first-class feature.
  • No min: / max: / exact: — pick-best-pick-worst is the only response shape.

Variants

Two layout styles. Same response shape, different visual presentation.

table — column layout

Two narrow columns flank the items: best on the left, worst on the right. The respondent clicks one radio per column. Compact; works well on desktop and tablet.

QImportance maxdiff · table
Task 1 of 12

For each set, pick the most important and the least important.

Most important Item Least important
Battery life
Camera quality
Screen brightness
Storage capacity
Build quality
- qid: QImportance
    type: maxdiff
    text: For each set, pick the most important and the least important.
    design: feature_importance_v2
    versionSource: systemBalanced
    style: table
    bestLabel: Most important
    worstLabel: Least important

stacked — vertical layout

Items list vertically, with best/worst buttons inline next to each. Reads more naturally on narrow viewports — the buttons flip to the side or below when there’s not enough horizontal room.

QImportance maxdiff · stacked
Task 1 of 12

For each set, pick the most important and the least important.

Battery life
Camera quality
Screen brightness
Storage capacity
- qid: QImportance
    type: maxdiff
    text: For each set, pick the most important and the least important.
    design: feature_importance_v2
    versionSource: systemBalanced
    style: stacked

Reading MaxDiff answers

MaxDiff exposes a richer accessor surface than CBC because items are themselves first-class proxies — they have a code, a label, and answer-state.

Question-level

QImportance.best         # MxdItem — most-recently-completed task's best
QImportance.worst        # MxdItem — most-recently-completed task's worst
QImportance.task(n)      # MxdTaskSlice — see below

The Q.best / Q.worst properties (note: properties, not methods) return the most-recently-completed task’s picks. They exist so authors can pipe the latest pick into text or branch on it without naming a specific task. To target a different task, name it explicitly: Q.task(N).best.

There’s no question-level Q.selected on maxdiff — read through Q.best / Q.worst (or Q.task(N).best / .worst) instead.

Per-task

QImportance.task(1).best      # MxdItem — the best pick from task 1
QImportance.task(1).worst     # MxdItem — the worst pick from task 1

Each task slice exposes its own best and worst. There’s no .items accessor on a task slice — the design file holds the authoritative item set for each version × task.

Item-level — what MxdItem exposes

QImportance.task(1).best.code         # numeric code of the best-picked item
QImportance.task(1).best.label        # label of the item
QImportance.task(1).best.answered     # True if a best was picked
QImportance.task(1).best.any([5, 6])  # True if the best is item 5 or 6

# Pipes cleanly into text:
text: You picked {{ QImportance.best }} as the most important.

MxdItem proxies have a toString so {{ QImportance.best }} renders as the item’s label. For comparisons, use .code (an integer matching the item’s code in the design file) or .any([...]) (a collection-style membership test).

Common patterns

Pipe the best pick into a follow-up

The most common downstream use — reference what the respondent just picked.

- qid: QImportance
    type: maxdiff
    text: For each set, pick the most important and the least important.
    design: feature_importance_v2
    versionSource: systemBalanced

- qid: QWhyBest
    type: open
    text: Why is "{{ QImportance.best }}" the most important to you?
    if: QImportance.best.answered

{{ QImportance.best }} resolves to the item’s label. .answered guards against the case where the question is visible-but-unanswered.

Branch on which item was picked

- if QImportance.best.any([5, 6, 7]):
    - qid: QPriceFollowup
        type: number
        text: How much would you pay for that?
        min: 0

.any([...]) membership-tests against an item-code list. Same shape as collection methods elsewhere in the platform.

Version assignment

A MaxDiff design ships as N fixed versions (blocks); each respondent sees one. Same three shapes as CBC:

ValueKindRecommendation
systemBalancedReserved keyword — engine-managed shuffled deal✓ Default.
systemRandomReserved keyword — engine-managed plain randomOnly when you explicitly need iid assignment.
Any expression (e.g. QVersion.selected)You own the assignment via a hidden question + - script:Legacy surveys, or when version must cross with a treatment cell / panel source.
- qid: QImportance
    type: maxdiff
    text: Pick the most important and the least important.
    design: feature_importance_v2
    versionSource: systemBalanced

No hidden QVersion question, no - script:. The engine deals versions from a per-block seeded shuffle (permuted-block randomization) — every block of N arrivals contains each version exactly once, so imbalance is ±1 by construction, always. Herd-free under concurrency, no expiry policy needed. The assigned version appears in the export as <qid>Version.

Full mechanism explanation with the “why we recommend” rationale lives on the CBC page — the algorithm is shared: see CBC → Version assignment → How the shuffled deal works.

Custom control — the expression form

Use an expression when the version has to cross with something the engine doesn’t know about — a treatment cell, a panel-supplied source, a translation — or when migrating a legacy survey.

- qid: QVersion
    type: single
    visibility: hide
    text: MaxDiff design version
    options:
        1: V1
        2: V2
        3: V3
        4: V4
    order: random

- qid: QImportance
    type: maxdiff
    design: feature_importance_v2
    versionSource: QVersion.selected

Pin the assignment with a hAssigned flag in your - script: so Back-and-forward doesn’t re-randomise. Same trade-off as CBC — you give up balanced assignment for the crossing.

In-task follow-ups

Like CBC, MaxDiff supports followUp: for questions that render inside each task instead of as standalone pages.

- qid: QImportance
    type: maxdiff
    text: Pick best and worst.
    design: feature_importance_v2
    versionSource: systemBalanced
    followUp: QConfidence

- qid: QConfidence
    type: single
    text: How confident are you in your choice?
    options:
        1: Very confident
        2: Somewhat confident
        3: Not confident

The follow-up evaluates against a MaxDiff-aware context that makes the current task’s best / worst available.

Common errors

  • Design <name> not uploaded. — design: references a name the Designs panel doesn’t know about.
  • Silent fallback to version 1 — versionSource: resolved to nothing valid; respondents share the version-1 task rotation.
  • “No design data for version X, task Y” — the design file is missing rows for that combination.

See also

  • CBC — choice-based conjoint, similar shape
  • Design assets — the file format design: references
  • Q.* accessors — Q.task(N), .best, .worst, MxdItem
  • Piping — {{ Q.best }} renders the item’s label cleanly