Demo Marketing Calendar added to DOMO-DOJO
Hi I'm Duncan Domo and I'm new to this!! So hopefully posting in the right place.
Summary: I built a Demo Marketing Calendar added to DOMO-DOJO
I had a problem and I found a solution thanks to a video/advice from @jaeW_at_Onyx
Video: https://www.youtube.com/watch?v=UO9YUfkSh7I watch this if you want to get into complex FY calendars.. my problem was more simple.. But this is fantastic video.. thanks again @jaeW_at_Onyx I thoroughly recommend browsing the channel and watching the Jae shows you how vids...
Problem: want to display marketing activities on DOMO calendar but only takes one date argument (great for webinars, not good for events that have start / end date)
Solution: Explode start / end date into rows per day (3 day event = 3 rows)
By joining to a "SQL numbers table"
I also did a hyperlink in a table for a fictional activity URL link for fun.. so it's 3 demos for the price of 1 today.
Part 1 - Create the SQL numbers table
Solution run stored proc in SQL transform with double while loop
Step 1 -
step 2 - this uses 1 based index as for date handling - you could change this to start at 0 for other things
step 3 call it - you can amend the number if you need bigger numbers.. or if you need crazy big numbers talk to @jaeW_at_Onyx who can do magic maths with cross joins..
step 4 - select * that bad boy into an output table..
Bing bang bong, you can join to that table anytime you need to explode a date range.. read on...
Part 2 - Explode the date range (take cover) using ETL
1. First calculate the number of days of event (using date diff)
2. Join number of days to you SQL numbers table
3. Calculate "display date" by adding day number to start date.. BOOM you are calendar ready
Note: I split the dataset in two, one set are single day activities (emails), one set are multi day events (get the above treatment), then I append them back together before outputting the final dataset
Finally, put it all back together and output the result..
Part 3 - Output to calendar dashboard, the finished package..
- Display StartDate (adjusted above to be a logical display date, could put in an extra column)
- Add a HTML table to make a clickable link for activity
Step 1 - Chart type = Calendar
Step 2 - HMTL table with a beast mode that adds <a> </a> tags round some data
Part 4 - finally put it all together on Dashboard and config interaction behaviour
card 1 =
Card 2 =
And that's it.. you now have a Marketing activity calendar which explodes multi-day activity day data into rows per day..
That's it.. hope you like it.. My first full solution.. so I'd love some feedback, so if you used it / liked it, please give it a like.. if not, drop some comments below with some suggestions.
- All Categories
- 1.1K Product Ideas
- 1.1K Ideas Exchange
- 1.2K Connect
- 969 Connectors
- 256 Workbench
- Cloud Amplifier
- 1 Federated
- 2.4K Transform
- 76 SQL DataFlows
- 500 Datasets
- 1.8K Magic ETL
- 2.7K Visualize
- 2.2K Charting
- 369 Beast Mode
- 19 Variables
- 175 Cards, Dashboards, Stories
- 483 Automate
- 101 Apps
- 378 APIs & Domo Developer
- 6 Workflows
- 22 Predict
- 6 Jupyter Workspaces
- 16 R & Python Tiles
- 316 Distribute
- 64 Domo Everywhere
- 252 Scheduled Reports
- 59 Manage
- 59 Governance & Security
- 1 Product Release Questions
- 5K Community Forums
- 37 Getting Started
- 23 Community Member Introductions
- 63 Community Announcements
- 4.8K Archive