Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9724

Google spreadsheets group by date (year-month) AND another column

$
0
0

I'm trying to group the data into a table so that I can group the DATE column into a month + year and at the same time differentiate the segment.

enter image description here

In MySQL something like:

SELECT CONCAT(YEAR(Date), '-',MONTH(Date)) AS MonthYear, Segment, SUM(Price) FROM table GROUP BY CONCAT(YEAR(Date), '-',MONTH(Date)), Segment

From this I then need to create a stacked graph. I was looking for various tutorials but to no avail.


Viewing all articles
Browse latest Browse all 9724

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>