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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Autogenerate records based on fields

I'm trying to autogenerate records based on 2 fields. Start Operation and End Operation. e.g. 10 -50. I need to generate records by increments of 10. Therefore, i would have 10, 20, 30 , 40, 50 for this particular record. It also needs to be dynamic for each record since the start and end operation will vary by record. Any ideas?

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Maybe like this?

LOAD Value,

StartOperation+(iterno()-1)*10 as Operation

while StartOperation+(iterno()-1)*10<=EndOperation;

LOAD * INLINE [

Value, StartOperation, EndOperation

10, 10, 50

];

View solution in original post

2 Replies
swuehl
MVP
MVP

Maybe like this?

LOAD Value,

StartOperation+(iterno()-1)*10 as Operation

while StartOperation+(iterno()-1)*10<=EndOperation;

LOAD * INLINE [

Value, StartOperation, EndOperation

10, 10, 50

];

Not applicable
Author

Thanks!!