Difference between dates
Best Answer
-
One thing you can do is group the datediff into buckets using a beastmode case statement. Like for instance if I was looking at the date difference from when a customer clicked a photo and when they edited a photo and I knew my average was 30 days, I may group the number of times the action happened into buckets and look at that over time. For instance, I may group the number of customers who did that action in 0-7 days, 8-14 days, 15-21 Days ... 60+ Days. You can then look at the counts or percentages over time to see if they are increasing or decreasing.
One problem with averages is you could have large outliers that can skew your data. If you have 10 customers and 9 completed the action in 1 day versus a customer who it took 100 days to complete, your average would be 10.9 days. If you look at the data in buckets you could potentially say 90% of customers complete the action in 0-7 days, which tells a much different story than it takes 10.9 days on average to complete this action.
Hope this helps.
Thanks,
Brian
**Please mark "Accept as Solution" if this post solves your problem
**Say "Thanks" by clicking the "heart" in the post that helped you.
**Please mark "Accept as Solution" if this post solves your problem
**Say "Thanks" by clicking the "heart" in the post that helped you.3
Answers
-
Hi Prajwal,
Could you please provide a little more context to your problem and maybe an example?
I am hesitant to say just create a beast mode using the DATEDIFF() function then bring that into your Y Axis, changing the calculation to "Average," if your problem happens to be more complex than that.
Thanks,
Brian
**Please mark "Accept as Solution" if this post solves your problem
**Say "Thanks" by clicking the "heart" in the post that helped you.
**Please mark "Accept as Solution" if this post solves your problem
**Say "Thanks" by clicking the "heart" in the post that helped you.1 -
Hey,
So I have to create a visualization to find how long it is taking between 2 events. For example, what is the number of days between when a photo is clicked and when it is edited and how this trend is changing over time?
I did create a Beast mode DATEDIFF() function calculation on the y-axis with date on the x-axis. I also grouped the dates into months so that I can find the average difference in days for each month. I used line chart.
Is there anything more that I can do to leverage the power of DOMO and create an even powerful viz?
Regards,
Prajwal
0 -
One thing you can do is group the datediff into buckets using a beastmode case statement. Like for instance if I was looking at the date difference from when a customer clicked a photo and when they edited a photo and I knew my average was 30 days, I may group the number of times the action happened into buckets and look at that over time. For instance, I may group the number of customers who did that action in 0-7 days, 8-14 days, 15-21 Days ... 60+ Days. You can then look at the counts or percentages over time to see if they are increasing or decreasing.
One problem with averages is you could have large outliers that can skew your data. If you have 10 customers and 9 completed the action in 1 day versus a customer who it took 100 days to complete, your average would be 10.9 days. If you look at the data in buckets you could potentially say 90% of customers complete the action in 0-7 days, which tells a much different story than it takes 10.9 days on average to complete this action.
Hope this helps.
Thanks,
Brian
**Please mark "Accept as Solution" if this post solves your problem
**Say "Thanks" by clicking the "heart" in the post that helped you.
**Please mark "Accept as Solution" if this post solves your problem
**Say "Thanks" by clicking the "heart" in the post that helped you.3 -
Hi,
Thanks a lot for that. I will try it out.
Wrt outliers, that was precisely what I was thinking. Average is definitely not a good indicator when there are outliers. I could use median but I could not find median aggregation in DOMO.
May be grouping them in to buckets will help deal with outliers much better.
Regards,
Prajwal
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