Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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