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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tLoop in reverse order

Hi, 

 

I am using tLoop component for iteration and gave 

from - 3 

to 1

step -1

disabled values increasing check box.

 

I am expecting output as 3,2,1. But, I am getting 1,2,3. Is this how tLoop works? If yes, How can I get my expected behaviour?

 

Thanks,

Meghana.

Labels (2)
1 Solution

Accepted Solutions
vapukov
Master II
Master II

Hi,

 

must work

0683p000009M2d3.png

 

|   tLogRow_1   |
|=--------+----=|
|iteration|value|
|=--------+----=|
|1        |3    |
'---------+-----'

.---------+-----.
|   tLogRow_1   |
|=--------+----=|
|iteration|value|
|=--------+----=|
|2        |2    |
'---------+-----'

.---------+-----.
|   tLogRow_1   |
|=--------+----=|
|iteration|value|
|=--------+----=|
|3        |1    |
'---------+-----'

View solution in original post

6 Replies
vapukov
Master II
Master II

Hi,

 

must work

0683p000009M2d3.png

 

|   tLogRow_1   |
|=--------+----=|
|iteration|value|
|=--------+----=|
|1        |3    |
'---------+-----'

.---------+-----.
|   tLogRow_1   |
|=--------+----=|
|iteration|value|
|=--------+----=|
|2        |2    |
'---------+-----'

.---------+-----.
|   tLogRow_1   |
|=--------+----=|
|iteration|value|
|=--------+----=|
|3        |1    |
'---------+-----'
Anonymous
Not applicable
Author

Thanks for the reply. What did you put in tJavaFlex?

 

Thanks,

Meghana

vapukov
Master II
Master II

Nothing, just connector
Anonymous
Not applicable
Author

Can u elaborate a little more. What have u given in tFixedFlowInput ?

 

How is that working. I mean flow.

 

Thanks,

Meghana

vapukov
Master II
Master II

iterate - ((Integer)globalMap.get("tLoop_1_CURRENT_ITERATION"))
value - ((Integer)globalMap.get("tLoop_1_CURRENT_VALUE"))
Anonymous
Not applicable
Author

Thanks. That solved.

 

Thanks,

Meghana