build a project timeline
Say we have data that looks like this
- Project, start date, end date, Total hours
- Task A, Jan 2023, June 2023, 50
- Task B, Feb 2023, July 2023, 100
If we assume a smooth work schedule where work to be done in a month for a project is total hrs/number of months. How can i lay this out, so we know how many hours of work needs to be done in a given month?
In the above example, it would be 150 hrs/6 months, so 30 hrs a month of work to be done.
Answers
-
The following beast mode / formula would get you the number of hours per month of work that would need to be done
`Total hours` / PERIOD_DIFF(DATE_FORMAT(`end date`, '%Y%m'), DATE_FORMAT(`start date`, '%Y%m'))
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0 -
thanks. But how do i lay this on a chart? So it shows total hours per month.
0 -
You can't just do this with the way your data is currently structured. Domo required each month to have a record for it to be displayed. You'll need to feed your data into an ETL and have a record for each month with the monthly amount.
First use the formula above in an Add Formula tile to calculate the amount per month. In that tile also add another column called Grouping Column with a value of 1. Then you'll need to add the Domo Dimensions connector's Calendar dataset as an input. Filter this dataset where
d
= 1 so you only have one record per month. Use another Add Formula tile to add another Grouping Column field with a value of 1.I'm assuming your date fields are actually a date. If it's a string you'll need to convert them to a date with some formulas formula (one for start date and one for end date, just update the field name):
STR_TO_DATE(`start date, '%b %Y')
Once you have those two datasets prepared you can join both of them together on your Join Column, then use a filter tile to filter using a condition like
`dt` BETWEEN `start date` and `end date`
You can then use the
dt
field in your table to display the number of hours needed per month**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**1 -
yes i saw your response on another post on using calendar dataset. It works well.
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 738 Beast Mode
- 56 App Studio
- 40 Variables
- 685 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 124 Manage
- 121 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive