# Average

// allows `minute`, `hour`, `day`, `week`, `month`
$metrics = Value::make()->period('today')->average(Order::class, 'hour', 'total');

# By minute

Get the average of the column values in the period by minutes.

$metrics = Value::make()->period('today')->averageByMinutes(Order::class, 'total');

# By hour

Get the average of the column values in the period by hours.

$metrics = Value::make()->period('today')->averageByHours(Order::class, 'total');

# By day

Get the average of the column values in the period by days.

$metrics = Value::make()->period('today')->averageByDays(Order::class, 'total');

# By week

Get the average of the column values in the period by weeks.

$metrics = Value::make()->period('today')->averageByWeeks(Order::class, 'total');

# By months

Get the average of the column values in the period by months.

$metrics = Value::make()->period('today')->averageByMonths(Order::class, 'total');