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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to convert this table

Hi All,

I have one table:

load * Inline

[OrderId,ChargeTimes

1,3

2,2

];

The order 1 was charged 3 times and order 2 was charged 2 times.

What I want is to show them seperated.

ChargeSequence, OrderId

1,1

2,1

3,1

1,2

2,2

How can I do it?

Thanks.

3 Replies
hic
Former Employee
Former Employee

Load

     OrderID,

     ChargeTimes,

     IterNo() as ChargeSequence

     From ...

          While IterNo() <= ChargeTimes;

HIC

Not applicable
Author

Hi !!!

PFA

Not applicable
Author

HI,

PFA

Hope it helps you