You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Text Field To Number Issue

edited Feb 1, 2018 2:33PM in Reporting & Analytics for B2C Service 7 comments

Content

We have a reporting requirement that is giving me trouble.  We have a custom test field that is populated with a duration in either whole numbers or decimal.  For example, values could be 1, 2.5 or .5 etc but will not have more than one decimal place so I converted it to a number and used the functions in this post https://cx.rightnow.com/app/answers/detail/a_id/5570

This function to_number(incidents.c$custom_field) + to_number(substr(incidents.c$custom_field, instr(incidents.c$custom_field, '.') + 1))/100 results in the actual number being changed as seen in Duration1 column of attachment.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!