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
Best Answer
-
Hi @JPeG
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
Answers
-
Hi @JPeG
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
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 753 Beast Mode
- 61 App Studio
- 41 Variables
- 692 Automate
- 177 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive