Aggregating 10 years of data to display by day-of-month AND month (combining all years for each day)
Well hello there fellow domo dojonians, i'm hoping someone can help. This may turn out to be super simple and i'm just over thinking it, so apologies in advance if that's the case.
I have a data set that includes 10 years of data. The date column includes day, month, year and specific time of day.
What i would like to do is to show all ten years aggregated into a single year view, by day of month. I seem to be able to make a chart that aggregates all months from the 10 years and can show that data. I can also do a chart that shows all days of all months combined. What i can't seem to do is show separate months, while aggregating 'day of month' .
Hope that makes sense. basically, i want the graph to show the day of month, separated by month (so the X axis has Jan 1, 2, 3...31, Feb 1,2,3... etc. ) and add up all the entries from each individual 'day of month' across all 10 years. So Jan 1 - 34 entries, Jan 2 - 78, Jan 3... and so on.
Any help appreciated, as always
You could create a beast mode to extract only the date parts you're interested in.
CONCAT(LEFT(MONTHNAME(`Date`), 3), ' ', DAY(`Date`))
Left is just making a 3-letter month abbreviation of the name since MONTHNAME returns the entire name.
Because this is now a string it will sort alphabetically rather than by calendar. To fix this issue you'd need to create a separate beast mode to sort properly based on a numerical representation.
MONTH(`Date`) * 100 + DAY(`Date`)
Drag that beast mode into your sort column and it should sort the days correctly.
If you even wanted to you could also create a beast mode for the year to use as a series.
YEAR(`Date`)**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**1
That worked perfectly - thank you so much! Sometimes you stare and stare and stare too long! hah ?
Appreciate the help, thanks again!0
- 7.6K All Categories
- 914 Connectors
- 241 Workbench
- 471 Transform
- 1.8K Magic ETL
- 60 SQL DataFlows
- 445 Datasets
- 24 Visualize
- 194 Beast Mode
- 2K Charting
- 6 Variables
- 14 Cards, Dashboards, Stories
- 1 Automate
- 348 APIs & Domo Developer
- 82 Apps
- 14 Predict
- 3 Jupyter Workspaces
- 11 R & Python Tiles
- 241 Distribute
- 59 Domo Everywhere
- 241 Scheduled Reports
- 14 Manage
- 35 Governance & Security
- 18 Product Ideas
- 1.1K Ideas Exchange
- Community Forums
- 15 Getting Started
- 1 Community Member Introductions
- 49 Community News
- 18 Event Recordings
- 579 日本支部