Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
terrusie
Contributor II
Contributor II

Populate field for every row

I have data from three different areas that have exactly the same structure.  When I load the data from these files, I want to have a field that says "Area" and populate it with the area to which the file corresponds. Is there a way to do this within the load script?

For example:

South (File 1):

Date                Sales

01/06/2018     $20

01/18/2018     $30       

------------------------------------

North (File 2):

Date               Sales

01/16/2018     $60

01/22/2018     $90  

------------------------------------

Loaded Fields

Date               Sales     Area

01/06/2018     $20        South

01/18/2018     $30        South

01/16/2018     $60        North

01/22/2018     $90        North

1 Solution

Accepted Solutions
kfoudhaily
Partner - Creator III
Partner - Creator III

load

date,

sales,

'south' as area

from file1

load

date,

sales,

'North' as area

from file2

QlikView Qlik Sense consultant

View solution in original post

3 Replies
kfoudhaily
Partner - Creator III
Partner - Creator III

load

date,

sales,

'south' as area

from file1

load

date,

sales,

'North' as area

from file2

QlikView Qlik Sense consultant
Anil_Babu_Samineni

May be create Flag like

South:

Load *,'South' as Area Inline [

Date                ,Sales

01/06/2018     ,$20

01/18/2018     ,$30

];

North:

Load *,'North' as Area Inline [

Date                ,Sales

01/16/2018,     $60

01/22/2018,     $90 

];

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
terrusie
Contributor II
Contributor II
Author

Thanks. This worked.