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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
carlcimino
Luminary
Luminary

Iterative Load on Resident Table

I have  a table that represents 1 month of data.  I'd like to reload it so I have 12 months.  Each one of the sets should have a month indicator (1-12).  How does one accomplish that?  My resident table name is Goals and the columns are listed below.


load

LOB,

PRODUCER_NUM_7_DIGIT,

SUB_PRODUCER_NUM,

ACE_PROD_NUMBER,

GOALNBPREM,

GOALQUOTEPREM,

NB_IND,

DATATYPE

Resident Goals;

1 Solution

Accepted Solutions
olivierrobin
Specialist III
Specialist III

hello,

try this

for i=1 to 12

table:

load

LOB,

PRODUCER_NUM_7_DIGIT,

SUB_PRODUCER_NUM,

ACE_PROD_NUMBER,

GOALNBPREM,

GOALQUOTEPREM,

NB_IND,

DATATYPE,

'$(i)' as month_indicator

Resident Goals;

next i

View solution in original post

2 Replies
olivierrobin
Specialist III
Specialist III

hello,

try this

for i=1 to 12

table:

load

LOB,

PRODUCER_NUM_7_DIGIT,

SUB_PRODUCER_NUM,

ACE_PROD_NUMBER,

GOALNBPREM,

GOALQUOTEPREM,

NB_IND,

DATATYPE,

'$(i)' as month_indicator

Resident Goals;

next i

carlcimino
Luminary
Luminary
Author

Hi Oliver.  Thanks for the quick response.  Worked like a charm!