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.
- 11K All Categories
- 5 Private Company Board
- 2 APAC User Group
- 12 Welcome
- 42 Domo News
- 9.9K Using Domo
- 2K Dataflows
- 2.5K Card Building
- 2.2K Ideas Exchange
- 1.2K Connectors
- 349 Workbench
- 267 Domo Best Practices
- 12 Domo Certification
- 474 Domo Developer
- 51 Domo Everywhere
- 110 Apps
- 726 New to Domo
- 85 Dojo
- 1.1K 日本支部
- 4 道場-日本支部へようこそ
- 29 お知らせ
- 65 Kowaza
- 302 仲間に相談
- 664 ひらめき共有