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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
janturon
Contributor III
Contributor III

Multiplication single row

Hello,

I need help with multiplication in LOAD script.

I have source table with about 1000 [reg]. Each [reg] has [start] and [end] date and pcakc. I need multiplication of each [reg] row for [start]-[end] range date.

Source table:

regstartendpcakc
12345601.01.1610.01.16i256

Result:

  

regdatepcakc
12345601.01.16i256
12345602.01.16i256
12345603.01.16i256
12345604.01.16i256
12345605.01.16i256
12345606.01.16i256
12345607.01.16i256
12345608.01.16i256
12345609.01.16i256
12345610.01.16i256

thx.

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Try something like this:

Table:

LOAD reg,

  Date(start + IterNo() - 1) as date,

  pcakc

While Date(start + IterNo() - 1) <= end;

LOAD * Inline [

reg, start, end, pcakc

123456, 01.01.16, 10.01.16, i256

789101,  03.01.16, 12.01.16, i212

];


Capture.PNG

View solution in original post

3 Replies
sunny_talwar
MVP
MVP

Try something like this:

Table:

LOAD reg,

  Date(start + IterNo() - 1) as date,

  pcakc

While Date(start + IterNo() - 1) <= end;

LOAD * Inline [

reg, start, end, pcakc

123456, 01.01.16, 10.01.16, i256

789101,  03.01.16, 12.01.16, i212

];


Capture.PNG

janturon
Contributor III
Contributor III
Author

thank you very much

sunny_talwar
MVP
MVP

No problem. I am glad I was able to help