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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Sakura
Creator
Creator

Text function is not working

I have used TEXT function for one field and it worked fantastically but for some other field it is not working.

I am importing data from excel. I have text and numeric values in the field. For numeric values, the Qlik is appending zeros after decimal places which I do not want.

Values

9M0007

0.23

100

UMKK001

For text values it returns perfectly, but for others

0.230000

100.000000

Kindly help!

1 Solution

Accepted Solutions
marcus_sommer

Try it with something like:

alt(num(Values, '#,##0.#####'), text(Values)) as Values

- Marcus

View solution in original post

5 Replies
Anil_Babu_Samineni

Can you make it clear with inline memory and result set needed?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
krishnacbe
Partner - Specialist III
Partner - Specialist III

Please find the attached sample. Text() function works.

Sakura
Creator
Creator
Author

As I have mentioned, the TEXT function is working for me for other column. I am surprised myself how is it not working for other same type of column.

marcus_sommer

Try it with something like:

alt(num(Values, '#,##0.#####'), text(Values)) as Values

- Marcus

Sakura
Creator
Creator
Author

This is what I came up with!

if(Isnum([Value]), Round([Value],0.01),[Value])

Thank you Marcus for the expression. I have tried your expression but it was avoiding some values I am not sure how. The excel file which I am using to import the data is really big so that might be causing the issues. I am just guessing.