Showing results for 
Search instead for 
Did you mean: 
Community Team Member
Community Team Member
This expression will convert IP addresses in the quad decimal format of '' to integers that can be used for further analysis (eg. cross referenced to a geo-location).
For example, it would convert the string '' to the integer 1123631617.
  1. Make sure your field that holds the quad decimal IP address is a string.
  2. In the same table, click Add new custom field, name it "ip_integer" and select BigInt as the type.
  3. Edit the expression of the new custom field to be:
( tobigint( strparts( <IP_field> , '.' , 1 )) * 16777216 ) + ( tobigint( strparts( <IP_field>, '.' , 2 )) * 65536 ) + ( tobigint( strparts (<IP_field> , '.' , 3 )) * 256 ) + ( tobigint( strparts( <IP_field> , '.' , 4 )))
Where <IP_field> is the name of your field that contains the string of your quad decimal IP addresses.
Post actions

Version history
Last update:
‎03-02-2023 08:33 AM
Updated by:
Community Toolbox

Recommended quick links to assist you in optimizing your community experience:

Developers Group:

Product Feedback Forum:

Need additional support?:

Submit a Support Request

The Legal Stuff

Have a question about the Sisense Community?

Email [email protected]

Share this page: