Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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!!