Date is an unaggregated feild if it has more than one value at a point on the xaxis the values will be summed.
I have received the error on the top corner of my visualization a few times and each solution I've come to has been quite different. So any clarity how why it occurs would be much appreciated.
SELECT
TO_CHAR(`Timestamp`, 'yyyy-mm') AS `Date`,
COUNT(DISTINCT `id_punto`) AS `Number_of_Clients`,
`linea_negocio` AS `Product_Offering`
FROM table
GROUP BY
`Timestamp`,
`linea_negocio`
ORDER BY
`Timestamp` ASC
Many thanks for any insights.