         .split(',')
 
         isMissingMeasurement = _.some froms, (from) ->
-          not _.includes measurments, from
+          not _.includes measurements, from
 
         return not isMissingMeasurement

      where: (day) ->
        "time >= #{dayToMS day}ms AND time < #{dayToMS day + 1}ms"
  }
  # {
  #   name: 'nps'
  #   numerator:
  #     select: 'average(value)'
  #     from: 'nps'
  #     where: (day) ->
  #       "time >= #{dayToMS day}ms AND time < #{dayToMS day + 1}ms"
  # }
  # {
  #   name: 'egp / view'
  #   numerator:


  getAll: =>
    @event.getMeasurements()
    .map (measurements) ->
      _.filter metrics, (metric) ->
        froms = _.filter([
          metric.numerator.from, metric.denominator?.from
