Skip to main content Skip to complementary content

Hash160 - script and chart function

Hash160() returns a 160-bit hash of the combined input expression values. The result is a 27-character string. Hash160() returns a 160-bit hash value of the combined input expression values. The result is a 27-character string. Hash values are useful for masking personal identifiable information (PII), such as customer names, social security numbers, or account numbers.

Syntax:  

Hash160(expr{, expression})

Return data type: string

Arguments
Argument Description
expr The string to evaluate.
Example: Chart expressions
Example Result
Hash160( 'abc', 'xyz', '123' ) Returns MA&5]6+3=:>;>G%S<U*S2I:`=X*

Hash160( Region, Year, Month )

Note: Region, Year, and Month are table fields.

Returns G7*=6GKPJ(Z+)^KM?<$'AI.)?U$

Example - Hash160 fundamentals

Example - Hash160 scenario with duplicate entries

Example - Hash160 scenario to anonymize data

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!