Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

AutoNumber for linking column

Hi All,

What is the meaning of the below code in script? What it will do?

LOAD AutoNumber(Item_Desc & Sub_Item_Desc) as %LinkItemDesc,

Thanks in advance.

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,

AutoNumber () generates sequential integers, AutoNumber stores the expression value and gives it a unique integer value. This function can be used e.g. for creating a compact memory representation of a complex key.

The Autonumber() function is used on the composite keys, It replaces long strings with a short number while maintaining all information. Which is a very storage efficient data for Qlikview.

If you have two are more common fields between tables, which are Unavoidable. Then you need to create composite keys between tables, i.e. keys that are concatenations of several other keys.

AutoID – When autonumbering different key fields in the same script, you should use the AutoId parameter. This ensures that each field will have sequential numbers with no gaps. Its Normally we use the fieldname as AutoId.

Syntax:

AutoNumber (expression [, AutoID])

Example:

LOAD AutoNumber (Product & Region, 'Key') AS KEY_FIELD

Regards

Neetha

View solution in original post

1 Reply
Anonymous
Not applicable
Author

Hi,

AutoNumber () generates sequential integers, AutoNumber stores the expression value and gives it a unique integer value. This function can be used e.g. for creating a compact memory representation of a complex key.

The Autonumber() function is used on the composite keys, It replaces long strings with a short number while maintaining all information. Which is a very storage efficient data for Qlikview.

If you have two are more common fields between tables, which are Unavoidable. Then you need to create composite keys between tables, i.e. keys that are concatenations of several other keys.

AutoID – When autonumbering different key fields in the same script, you should use the AutoId parameter. This ensures that each field will have sequential numbers with no gaps. Its Normally we use the fieldname as AutoId.

Syntax:

AutoNumber (expression [, AutoID])

Example:

LOAD AutoNumber (Product & Region, 'Key') AS KEY_FIELD

Regards

Neetha