ETL Select Columns "Shortcut"
Hello, I work with Datasets with high counts of columns. When I create ETL's where I have to Select Columns, I can be going through 150+ columns at a time to choose the columns I need. If I only have a handful to add, scrolling through the list and adding one by one is not really an issue, but when I need to add 30+, it get's very time consuming scrolling through the list over and over to add each column. Adding all columns, and then going through the list to remove the columns I don't need, takes just as long when I'm only selecting, say, 40 columns out of the 150+.
Is there a faster way to add multiple columns (30+), than going through the whole list of 150+ fields and selecting columns one by one? For example, is there a way to select multiple columns at once to add, and then once added, go down the selected list and set the properties for each?
If not, having selection boxes next to the column names, or some other way of choosing multiples to add, would be a great enhancement for future upgrades. Thank you!
Note: Due to the size of our company, count of users, and the amount of data in some of our Datasets (Millions of rows), access to Workbench is limited to our IT Dept, so I do not have access.
Best Answer
-
If you are just doing SELECT statements, it is not too daunting. I would encourage you to review this KB article that should give you enough basic knowledge to do what you want to do.
https://knowledge.domo.com/Prepare/Magic_Transforms/SQL_DataFlows/01Creating_an_SQL_DataFlow
You would select your source dataset as the input dataset and then add a transform and choose table to then select the columns that you want.
A basic SELECT statement would look like this
SELECT `date`, `value`, `series`
FROM input_dataset_1This would return just those 3 columns from your dataset, for example. While it won't let you drag and drop columns into your SELECT statement, you could highlight the columns from the list on the left when you are in the transform editor and then paste them into a text editor or even Excel and then remove the columns you don't want and add the necessary comma after each column name.
You would then add an output dataset and then you are done.
Hope this helps.
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.2
Answers
-
In the select columns, you can use type-ahead to slightly ease the pain of selecting your columns, but you are still limited to do it one at a time. This has sped it up for me as I have a dataset with nearly 600 columns.
Perhaps a better option would be to use a SQL dataflow whose only purpose is to select the columns that you want as you could then take advantage of copy and paste functionality and other text editor type features. You would then use the output dataset as the new input dataset in the ETL.
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.3 -
I usually create a separate dataset that has only the most commonly-used fields. For example, a dataset containing all 300+ cols related to a Salesforce activity, then, in the same dataflow that produces the larger set, a second output set containing only the 50 most popular cols. That's the one I generally join to via ETL. Then you can just add all columns.
Jesse
Dojo Admin
**Say "Thanks" by clicking the "heart" in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"2 -
Thank you for your input Mark! Unfortunately, I am not well versed in SQL (slowly learning though), which limits me quite a bit right now.
I am new to Domo and we have hundreds of datasets and billions of rows of data, so I am learning as I go.
1 -
If you are just doing SELECT statements, it is not too daunting. I would encourage you to review this KB article that should give you enough basic knowledge to do what you want to do.
https://knowledge.domo.com/Prepare/Magic_Transforms/SQL_DataFlows/01Creating_an_SQL_DataFlow
You would select your source dataset as the input dataset and then add a transform and choose table to then select the columns that you want.
A basic SELECT statement would look like this
SELECT `date`, `value`, `series`
FROM input_dataset_1This would return just those 3 columns from your dataset, for example. While it won't let you drag and drop columns into your SELECT statement, you could highlight the columns from the list on the left when you are in the transform editor and then paste them into a text editor or even Excel and then remove the columns you don't want and add the necessary comma after each column name.
You would then add an output dataset and then you are done.
Hope this helps.
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.2 -
You can also use
ALTER TABLE your_table DROP COLUMN `Column1`,`Column2`,...;
If you are only looking to remove a few columns. (This would be in a MySQL dataflow as well)
2
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