Get Month and Year and Group/Sort
I've got a sheet in which sales reps input their daily activity. This sheet has a date column that is required. I'm trying to make a dashboard to track month to month levels of activity. Perhaps I'm missing something but there doesn't seem an obvious way to do this. I've tried making a report to group by month and sorts properly but I haven't been successful. The way I've done this is make a helper column in the report of =YEAR(DATE@row) + "/" + MONTH@row however when it gets to sorting 2021/9 ends up below 2021/12, I'm assuming because its sorting them as strings rather than recognizing them as dates. Any tips would be greatly appreciated!
Answers
-
Hi @tendres
You can make sure it reads the numbers in the correct order by having 0 in front of the 9, so it reads 09 before 12.
Try something like this:
=YEAR(DATE@row) + "/" + IF(MONTH(DATE@row) < 10, "0" + MONTH(DATE@row), MONTH(DATE@row))
This will add a 0 before any Month earlier than October.
Let me know if this works for you!
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 67 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives