Magic ELT Data Flow Unexpected Results
Hello,
I have two input data set that were trasnformed in SQL. I have two columns in each data set. Column 1 is the part name, this column is the exact same in each data set, for example: row 1, in data set 1 & 2, contans the exact same text. The ladder is true for each row in each data set. The second column is the differing column and the each contain whole numbers. I am trying to join the two data sets together, then do a addition calculation to het the SUM of the two columns. The problem comes in at the JOIN, when I join the two data sets, the result is the fist row of data for each data set being repeated 100 times.
Data Set 1:
Data Set 2:
Join Result:
As you can see the Join Result is name 101CM repeated. It did not join my data sets together.
What am I doing wrong?
Thanks
Best Answer
-
Hi,
You might want to try this and make sure the name columns have unique values, otherwise the results will repeat as many times as there are possible combinations
Domo Arigato!
**Say 'Thanks' by clicking the thumbs up in the post that helped you.
**Please mark the post that solves your problem as 'Accepted Solution'1
Answers
-
Can you post a screenshot of the ETL you currently have setup?
Are each of the values in column1 unique? Sounds like it, just checking
**Make sure to like any users posts that helped you and accept the ones who solved your issue.**0 -
OK, here are some screen shots of the ETL Data Flow.
Here I set up the Data FlowThe data in height_ft_in_convert is correctThe data in Set Column Type 1 is correctHere is the config. it should combine the data from from each data set if the identifying columns have the same value.The result is the first line of data, which is correct, repeated 100 times.
0 -
Hi,
You might want to try this and make sure the name columns have unique values, otherwise the results will repeat as many times as there are possible combinations
Domo Arigato!
**Say 'Thanks' by clicking the thumbs up in the post that helped you.
**Please mark the post that solves your problem as 'Accepted Solution'1 -
Sniped. My response I was typing.
A couple more questions I was preparing:
- What exactly is your set column type ETL doing? Is the data not coming as a number?
- Is there a reason you have an input dataset in their that doesn't connect to anything?
It might be due to the JOIN type you are doing. The full thing being greyed in is a full outer join which is giving you everything, might want to try an inner or left outer depending on your data.
**Make sure to like any users posts that helped you and accept the ones who solved your issue.**0 -
Actually I'm doing a test with your data and getting the same thing, even with an inner join. Hopefully I can followup shortly.
**Make sure to like any users posts that helped you and accept the ones who solved your issue.**0 -
Im gona test it out, but i think the problem is there is not a unique idenifer for each row. For example an ID column. Similar to a column that counts the rows. I can then join the data per the counting column and not the name column.
0 -
The good news here is that your data looks like it's correct, it's just that the JOIN doesn't remove the column from showing up in this case.
If you can do it via a MySQL dataflow you can choose to just not select that field and it won't show. If you want me to walk you through it I can.
**Make sure to like any users posts that helped you and accept the ones who solved your issue.**0 -
Ok, I am trying to give my table a new column for an unique identifier. I am wanting to ALTER TABLE table_name ADD column_name column_type FIRST;
I keep getting a Syntax error. If I dont't use the SELECT command, the error tells me it can not gernertate an output table, and no matter where in the syntax I put the ALTER command I get a syntax error.
How can I add a column to an existing table in domo?
Trying to add a column to this existing table.
0 -
Do you definitely need a rowID as opposed to just not showing one of the duplicates like I mentioned? I onyl say that because it seems to solve the problem but I don't know the answer to your most recent questions so you'll have to see if someone else knows.
**Make sure to like any users posts that helped you and accept the ones who solved your issue.**0 -
Yes I need an ID column. WHile what you did helps it still repeated the first valuse for 100 lines. I need the unique ID so I can matche and add columns per the ID number not the "name" column, because I can have the same value in the "name" column. Thanks for your help.
0 -
The inner join worked? What did you change?
**Make sure to like any users posts that helped you and accept the ones who solved your issue.**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