Comparing a Running Sum to Same Time Last Year with nulls

Hi,
I am having a hard time comparing a running sum to the same time last year if there is a no value.
The beastmode I am using to get the running sum for each year is as followed.
SUM(Count(ReportNumber
)) OVER (PARTITION BY Year
ORDER BY AccidentDate
)
However, not all accidents occur on the same day of the year, so my question is how can I modify the beast mode to find the max value leading up to the day of the year.
I attached a photo below to show you the issue. In the prior year coulmn I am trying to carry the two down until it becomes 3.
Is there an easier way to accomplish this? Thank you!
Best Answers
-
This doesn't answer your question, but a suggestion, since I built this card yesterday and have it on my mind, is to use the running total chart and add a YoY comparison and then show the data table under the running total line chart. This wouldn't require any beast modes and I think is a helpful visual.
If I solved your problem, please select "yes" above
1 -
Interesting, it only seems to fill in when looking at a previous time period for the YoY comparison. When I use current year vs previous year it doesn't fill in.
If I solved your problem, please select "yes" above
0
Answers
-
This doesn't answer your question, but a suggestion, since I built this card yesterday and have it on my mind, is to use the running total chart and add a YoY comparison and then show the data table under the running total line chart. This wouldn't require any beast modes and I think is a helpful visual.
If I solved your problem, please select "yes" above
1 -
I didnt know if DOMO had a card like that or not but its Exactly what I was looking for! You just saved me a lot of time thank you!
0 -
Awesome! And you can of course switch it to graph by day, week, whatever to fit your needs. Glad I could help!
If I solved your problem, please select "yes" above
0 -
My only question is, how did you get the area to fill in gray?
0 -
Interesting, it only seems to fill in when looking at a previous time period for the YoY comparison. When I use current year vs previous year it doesn't fill in.
If I solved your problem, please select "yes" above
0 -
Odd, Thanks again!
0
Categories
- All Categories
- Product Ideas
- 2.1K Ideas Exchange
- Connect
- 1.3K Connectors
- 309 Workbench
- 7 Cloud Amplifier
- 10 Federated
- Transform
- 664 Datasets
- 120 SQL DataFlows
- 2.3K Magic ETL
- 823 Beast Mode
- Visualize
- 2.6K Charting
- 86 App Studio
- 46 Variables
- Automate
- 194 Apps
- 484 APIs & Domo Developer
- 90 Workflows
- 24 Code Engine
- AI and Machine Learning
- 23 AI Chat
- 4 AI Projects and Models
- 18 Jupyter Workspaces
- Distribute
- 119 Domo Everywhere
- 283 Scheduled Reports
- 11 Software Integrations
- Manage
- 143 Governance & Security
- 11 Domo Community Gallery
- 49 Product Releases
- 13 Domo University
- Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 116 Community Announcements
- 5K Archive