Feb 11, 2021
0
Level 6
Metrics Range yesterday
I am defining a metric, but I cannot define the Ranges relating to yesterday, i.e. I would like to take only the values of the previous day so I take the previous one plus the current one
public function ranges()
{
return [
'TODAY' => __('Today'),
2 => __('Yesterday'),//bad solutions
7 => __('Week'),
30 => __('30 Days'),
60 => __('60 Days'),
90 => __('90 Days'),
365 => __('365 Days'),
];
}
Please or to participate in this conversation.