We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Measures

Calculated columns and measures both perform calculations, but they're quite different.

A "calculated column" is stored in your model and evaluated for each row in a table. A "measure" is calculated on the fly as a total, updating dynamically as you interact with your report.

Columns are row-by-row; measures are context-by-context.

Assignment

  1. total_revenue = SUM(sales[discounted_price])
    

    Notice that this doesn't generate an entire column of data – the measure represents a single aggregated value!

Save the project and, from the course directory, submit the CLI tests.