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

Query about Auto number

Dear Frds,

Am new to QlikView and I couldn't find any solution for below logic, if any one knows please help me

The Logic is

My Table is like this

 

Line No. Item No. Other Data
11000
21001
31000
41000
51001

And My required table from above one is

Line No. Item No. Other DataItm Serial No
110001
210011
310002
410003
5         10011

I know about AutoNumber syntax in Qlikview, it will give the result as the Unique number for sames data but my requirement is totally opposite way.

Please help me to get solution for this.

With Regards,

Mike S.

1 Solution

Accepted Solutions
its_anandrjs

Hi,

Ok understood you need to add another column as Auto_No

Data:

load * inline

[

LineNo,          ItemNo

1,          1000

2,          1001

3,          1000

4,          1000

5,          1001

];

load

*,

AutoNumber(LineNo,ItemNo) as Auto_No

Resident Data;

See the sample file

Rgds

Anand

View solution in original post

9 Replies
Not applicable
Author

Sorry the 2nd table value should be as shown below

Line No. Item No. Other DataItm Serial No
11000 1
21001 1
31000 2
41000 3
5        1001 2
its_anandrjs

Hi,

What is "Itm Serial No" values refers to

1

1

2

3

2

what are this values meaning.

Rgds

Anand

Not applicable
Author

Hi anand,

I think Itm serial no is nothing but  sequence of occurances.

Line no  Item no   comments

1          1000        this is first occurance of item no =1000, so the Item serial no =2

3          1000        this is scond occurance of item no =1000 , so the Item serial no =2

like wise for other records as well inrespective of Line no.

Regards

Vinod

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

HI,

    Try this expression.

    AutoNumber(Item_No&Line_No,Item_No) as Auto_No

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
its_anandrjs

Hi,

Ok understood you need to add another column as Auto_No

Data:

load * inline

[

LineNo,          ItemNo

1,          1000

2,          1001

3,          1000

4,          1000

5,          1001

];

load

*,

AutoNumber(LineNo,ItemNo) as Auto_No

Resident Data;

See the sample file

Rgds

Anand

its_anandrjs

Hi,

See the updated file

Let me know about this

HTH

Rgds

Anand

Not applicable
Author

Hi ,

Working perfectly as desired. Good work!

Thanks..Vinod

its_anandrjs

Hi,

Thanks i am glad to help you, if you got correct answer so mark it correct under my post.

Rgds

Anand

Not applicable
Author

Thank You Anand I got it

Regards,

Mike S.