Combining CONCAT and other Functions to Calculate String Values

You can combine the CONCAT function with other functions to calculate complex string values. For example, to show duration values in days and hours, first normalize the values with TO_NUMBER and TO_NCHAR, then use this formula. The output type is STRING:

          CONCAT(CONCAT('Days: ',TO_NCHAR(FLOOR(TO_NUMBER(TO_NCHAR({timeelapsed}/24))))),
CONCAT(' Hours: ',TO_NCHAR(MOD(TO_NUMBER(TO_NCHAR({timeelapsed})),24)))) 

        
Example of combining CONCAT and other functions. CONCAT formula shown in the dataset.

Try using different formula functions with the CONCAT function to calculate other string values.

Related Topics

General Notices