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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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
Partner - Champion III
Partner - Champion III

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
Partner - Champion III
Partner - Champion III

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