Hey! i have a problem with the segments.month and segments.week, i need to bring data of metrics, grouped by month and by weeks
Something like this
clicks | month
250 | October
313 | November
when i do this query "SELECT metrics.clicks FROM campaign WHERE segments.date BETWEEN '2023-09-01' AND '2023-11-01'" i get 5 rows, but when i add segments.month to the select i dont get anything:
SELECT metrics.clicks, segments.month FROM campaign WHERE segments.date BETWEEN '2023-09-01' AND '2023-11-01'
Same thing happened when i tried with segments.week.
Although i found a way to bring the data by month doing a loop bringing the data from first day of the month until last day of the month, but it is not efficient cause if i need ten months, for example, i will have to do ten requests
If someone can help me would be great! Thanks in advance