Discussion board where members can get started with QlikView.
Good Afternoon Qlikview community,
Hopefully this is an easy one to solve. I have a table with several fields in and two of them hold simular data. I would like to merge these two fields together so they are one.
Here are some of the fields
I would like Company Departure and Company Arrival as Company. so I thought it would be something like
Company Departure AS Company,
Company Arrival AS Company
But that did not work.
Any help would be highly appreciated.
Go to Solution.
If in a record only one of the two fields has a value you can concatenate them:
[Company Departure] & [Company Arrival] AS Company.
Otherwise you'll have to load the departures and arrivals separately in two loads:
LOAD Town, City, Departure, Arrival,
[Company Departure] AS Company
where len(trim([Company Departure]))>0;
[Company Arrival] AS Company
where len(trim([Company Arrival]))>0;
You should not give same name for two fields in a table, it throws an error.
So, you can give two different names for this two columns. If Company Departure and Company Arrival holds same data then there is no need of loading two columns, you can just load a single column.
Thank you Gysbert, That did the trick
I loaded two tables. inbetween 2 tables i have written "add". Now i got combination of 2 fields data.
Is it right way?
Can you create a new thread and attach sample data/script and your expected result.