Delimiter issue
Hello Team,
I am trying to do a ETL in domo but unable to get desired result please suggest.
In my input, i have a few columns, the lowest grain in Employee id, I have a column called Value, In this values are given using delimiter "|". In my below example there are 2 instances on "|" but in my data it can come any no. of times.
My requirement was to create an output which separates the delimited values in new rows . I tried to use the split column in domo etl but i have to give the column names for each split, and the issue is that the delimiter can be used 100+ times or may not be used at all. But the query should work whenever we have a delimiter and get the values and place in a new row respective to the employee id and other relevant details . I am also unable to use any recursive function code in SQL tile. Please suggest.
Input | ||||
---|---|---|---|---|
Entity | Name | Employee ID | Policy column | Value |
user | Jack | 1001 | Country ID | JAPAN |
user | Blake | 1002 | Country ID | Japan|DENMARK|Albania |
user | Blake | 1002 | Client ID | Microsoft |
Ouput | ||||
Entity | Name | Employee ID | Policy column | Value |
user | Jack | 1001 | Country ID | JAPAN |
user | Blake | 1002 | Country ID | Japan |
user | Blake | 1002 | Country ID | DENMARK |
user | Blake | 1002 | Country ID | ALBANIA |
user | Blake | 1002 | Client ID | Microsoft |
Answers
-
Have you tried using Magic ETL with Text tile, Split Column to split on the pipe symbol?
** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **0 -
You will want to use this method that I outline in this video to break them up dynamically since you don't know how many there will be.
**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.1 -
Hello, I tried the split column with pipe symbol, but then i have to add a column names for all my expected values. But as i explained i do not know the exact count, the raw data can come with 100+ delimited values and then this will fail
Hope you are referring to this
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 296 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 99 SQL DataFlows
- 614 Datasets
- 2.2K Magic ETL
- 3.8K Visualize
- 2.5K Charting
- 727 Beast Mode
- 53 App Studio
- 40 Variables
- 677 Automate
- 173 Apps
- 451 APIs & Domo Developer
- 45 Workflows
- 8 DomoAI
- 34 Predict
- 14 Jupyter Workspaces
- 20 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 121 Manage
- 118 Governance & Security
- Domo Community Gallery
- 32 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive