Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

question


what is difference between autonumberhash and rowno()

1 Solution

Accepted Solutions
jagan
Luminary Alumni
Luminary Alumni

Hi,

autonumberhash() - will encrypt the given value

rowno() - returns the current row number in Load statement.


Example:

LOAD

AutoNumberHash(Country) AS Key, -- Hashes / Encrypts the string

RowNo() as CountryID,   1 for India, 2 for USA

Country,

Sales

INLINE [

Country, Sales

India, 1000

USA, 800 ];

Hope this helps you.

Regards,

Jagan.

View solution in original post

5 Replies
amit_saini
Master III
Master III

Ramya,

check this:

rowno() and recno()

Thanks,

AS

alexandros17
Partner - Champion III
Partner - Champion III

The first rcomputer a string (hash) resulting from expression or fields and return an integer, can be used to compress complex key into one value, the second

returns an ibteger for the position of current row in internal table

jagan
Luminary Alumni
Luminary Alumni

Hi,

autonumberhash() - will encrypt the given value

rowno() - returns the current row number in Load statement.


Example:

LOAD

AutoNumberHash(Country) AS Key, -- Hashes / Encrypts the string

RowNo() as CountryID,   1 for India, 2 for USA

Country,

Sales

INLINE [

Country, Sales

India, 1000

USA, 800 ];

Hope this helps you.

Regards,

Jagan.

sujeetsingh
Master III
Master III

jAGAN GIVEN THEM IN BEST WAY