Forum Discussion
Alternative to merging large table - Need null values in a table
- Anonymous7 years ago
Anonymous ,
Refer this post:
Thanks,
Tejaswi
Hi Anonymous ,
Please let me know if these steps works for you:
1. Hit on new table( in the modeling) and enter this formulas( (or you can simply hit on enter data and enter the values you want)
- Table 1 : ( I am adding blank columns so that I can merge it with table 2, since table 2 has 4 columns)
Table 1 = Union(
Row("Date","1/1/2019","severity","sev1","project key","a"," ",""),
Row("Date","1/1/2019","severity","sev2","project key","a"," ",""),
Row("Date","1/1/2019","severity","sev3","project key","a"," ",""),
Row("Date","1/1/2019","severity","sev4","project key","a"," ",""),
Row("Date","1/1/2019","severity","sev1","project key","b"," ",""),
Row("Date","1/1/2019","severity","sev2","project key","b"," ",""))-Table 2:
Table2 = Union(
Row("Date","1/1/2019","severity","sev1","project key","a","Product","1"),
Row("Date","1/1/2019","severity","sev3","project key","a","Product","1"),
Row("Date","1/1/2019","severity","sev4","project key","a","Product","2"))-Table 3-( Merge Table 1 and Table 2)
Just add table 2 after Union in your Table 1 formula.This will merge the data you need.
Table 1 = Union( Table2,
Row("Date","1/1/2019","severity","sev1","project key","a"," ",""),
Row("Date","1/1/2019","severity","sev2","project key","a"," ",""),
Row("Date","1/1/2019","severity","sev3","project key","a"," ",""),
Row("Date","1/1/2019","severity","sev4","project key","a"," ",""),
Row("Date","1/1/2019","severity","sev1","project key","b"," ",""),
Row("Date","1/1/2019","severity","sev2","project key","b"," ",""))- Here is what I got as an output:
Highlighted sev 2 has Product key null. same as what you expected.
Let me know for any question,
Thanks,
Tejaswi
I already have the tables for Date, Severity, and Project Key.
I just need a method to join all 3 together.
- Anonymous7 years agoNot applicable
Anonymous
May be you can use Merge queries in the query editor.
Thanks,
Tejaswi
- Anonymous7 years agoNot applicable
Can I merge (join) if they do not share a common primary key?
- Anonymous7 years agoNot applicable
Anonymous ,
Refer this post:
Thanks,
Tejaswi