Combining two header rows
I am receiving data in the format below. I would like to merge the two header rows into one where it would merge 'Date and Product Qty'.
Comments
-
What does it look like in Domo after you use the file upload?
0 -
It is an emailed dataset. Since first few headers are blank in the first header row, DOMO is renaming it as C1, C2.... and reading the rest of the lines as data (please see attached)
0 -
I don't think there's an easy way per-se to accomplish this.
1) create a rownumber called row_id using the Rank & Window Tile.
2) split your data using 2x SELECT tiles, with Row_ID in both SELECTS. such that SELECT 1 contains all the 'other metrics' and SELECT 2 contains the months of 'projected quanitty.'
3) in SELECT 2, filter out the rows where the value = "projected quantity", then convert the data type to numeric. At this point you should have a ton of columns called 'dates' of data type number.
4) use Dynamic Pivot to collapse your data into a column containing Label "Dates", and values are the actual quantity.
5) add a constant "Metric" = "Projected Quantity.
6) JOIN SELECT 1 and reshaped SELECT 2 on the Row_ID.
Good luck!
collapse projected quantity using 'dynamic pivot.' such that you pivot
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"1 -
Thanks, I was able to achieve what I was looking for by using 'Dynamic Pivot' function of the magic ETL. Thanks again for your help!
0 -
You should also be able to do this using the file connector. Just click on edit selection and have the header include both rows:
1 -
Thanks. I receive this data every week. If I use data connector upload file, I will have to do it manually every week. I was looking for something that can automate this whole process, which I was able to do by using the unpivot function. Thanks to all of you for your quick replies!
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