Regards to transforming data prior to joining with another data set.
Attached are 2 different samples of data. Both are in similar format, and have plenty of same columns.
The price list is where the bulk of what I am going to use will come from. It is the full inventory for a site. the total number of units, number of occupied, number of vacant etc... It is rolled up in to a single row for each unit type at every site. The vacant unit sample is only of those units that are not occupied, and it gets broken out where every single unoccupied unit gets it's own row. This is where things are getting complicated. From the Vacant unit file I just need the info from the daysvacant column, since there is say 7 rows of 5x5 drive ups at the same site all with different amounts of 'daysvacant' I was thinking the best option would be to a min, max, and med, columns for 'daysvacant'. The bigger aspect is i am not sure how to counter the multiple rows of the same units, and have it be able to cooperate with the price list that has single rows for single unit types.
Any suggestion or direction is greatly appreciated!
Best Answers
-
you've stumbled onto the age old problem. :P
1) i assume that the price list report changes / updates regularly (let's assume weekly). at some point you'll probably want to ask "what did these metrics look like 5 weeks ago." to do that you'll need to have accumulated the history of this snapshot report.
add a "report_date" column and then build a recursive dataflow that captures the history of those changes this video has a thorough explanation of the pitfalls of recursive dataflows, but if you start the video where linked, you'll see a much easier design pattern implemented than the KB article
https://youtu.be/JNQFZCj8JcQ?t=567
2) build another recursive dataflow for the vacant units (make sure they get the same report_date)
3) UNION the datasets together. You only want to overlap on columns that ARE NOT metrics ( so location is fine, Site ID is has to overlap).
In visuzalization even though the data are on separate rows, you don't have to worry about weird MIN / MA Average because you did not JOIN the data together.
Jae Wilson
Check out my 🎥 Domo Training YouTube Channel 👨💻
**Say "Thanks" by clicking the ❤️ in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"0 -
@jaeW_at_Onyx both these reports will refresh on a daily basis. Transactions take place, people move in, and move out daily, so each day will be a fresh update. I will give this a try. Thanks for the guide line!
0
Answers
-
you've stumbled onto the age old problem. :P
1) i assume that the price list report changes / updates regularly (let's assume weekly). at some point you'll probably want to ask "what did these metrics look like 5 weeks ago." to do that you'll need to have accumulated the history of this snapshot report.
add a "report_date" column and then build a recursive dataflow that captures the history of those changes this video has a thorough explanation of the pitfalls of recursive dataflows, but if you start the video where linked, you'll see a much easier design pattern implemented than the KB article
https://youtu.be/JNQFZCj8JcQ?t=567
2) build another recursive dataflow for the vacant units (make sure they get the same report_date)
3) UNION the datasets together. You only want to overlap on columns that ARE NOT metrics ( so location is fine, Site ID is has to overlap).
In visuzalization even though the data are on separate rows, you don't have to worry about weird MIN / MA Average because you did not JOIN the data together.
Jae Wilson
Check out my 🎥 Domo Training YouTube Channel 👨💻
**Say "Thanks" by clicking the ❤️ in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"0 -
@jaeW_at_Onyx both these reports will refresh on a daily basis. Transactions take place, people move in, and move out daily, so each day will be a fresh update. I will give this a try. Thanks for the guide line!
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