Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Solving the Informatica Dilemma: On-Demand Briefing - Watch On Demand!
cancel
Showing results for 
Search instead for 
Did you mean: 
adurgani
Contributor III
Contributor III

How do you add a column to a table created from two other tables

2018-04-11_13-35-48.jpg

How would you add a column to BLI? BLI is a table created from a cross table and a straight table in two different tabs on an excel sheet.

We need to concatenate Month and Dimension.

5 Replies
jerifortune
Creator III
Creator III

Try this

Load *, Year & Month AS YearMonth;
Load *
From BLI

adurgani
Contributor III
Contributor III
Author

I still  get an error - Its something rudimentary that I'm missing.

Cannot open file '\\............MyDocs\Qlikview  Reports and Data\BLI' The system cannot find the file specified.

Load *

From BLI

jerifortune
Creator III
Creator III

I used the script as an example

Your load script should remain the same. Only add Load *, Year & Month AS YearMonth; at the top of the BLI load statement as shown below

Example

BLI:

Load *, Year & Month AS YearMonth;

Load

FID,

Month,

BLI

adurgani
Contributor III
Contributor III
Author

The issue is that one of the fields that I need to concatenate is created using crosstable:

Dimension     Jan     Feb     Mar

BLI1               10     20        30

Crosstable

Dimension     Month     Amount

BLI1               Jan         10

jerifortune
Creator III
Creator III

The first step is to unpivot the table

Find how to unpivot the table here
https://help.qlik.com/en-US/sense/September2017/Subsystems/Hub/Content/LoadData/work-with-cross-tabl...

Then use Concatenate to join the two tables  Or add the values from the two tables after joining by YearMonth