Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Converting text in numbers

Hi guys!

I have a data with values like: 0,5, 0,69 and so on.

Qlikview doesnt recognize these values like numbers, so I need to convert them. I try like num#(Values,'#,##') and it convert values like 0,69  into numbers, however, leaving numbers like 0,5 as text.

And when i try num#(Values,'#,#') it convert 0,5in numbers and leaves 0,5 as text.

Any suggestions on how I can convert all the values into numbers?

1 Solution

Accepted Solutions
p_verkooijen
Partner - Specialist
Partner - Specialist

Try:

REPLACE(Value, ',', '.') AS Value

View solution in original post

9 Replies
sagarkharpude
Creator III
Creator III

You can use num(fieldname) ...

format numbers as follows num(fieldname,'00') on order to show all values like 01 or 04 and so on.

Not applicable
Author

Hi Diana,

num#(Values,'#,#', ',') should work for you, you'll need to set the decimal separator also

hope that helps

Joe

Not applicable
Author

Hi, Joe!

Unfortunately, it isn't working

p_verkooijen
Partner - Specialist
Partner - Specialist

Try:

REPLACE(Value, ',', '.') AS Value

PrashantSangle

Hi,

use num#(Value,'#,00#')

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Not applicable
Author

This worked perfectly great!

Thank YOU!!!

Not applicable
Author

Hi Diana,

Two ways you can try for this solution

1) Goto Number Tab in chart properties , from there u can change

2) num(num#()) you can use

Not applicable
Author

Hi..

Joe Simmons 

I want some real time scenario  and examples with expressions.

Please Help Me.

Thanks,

Srinu

Not applicable
Author

Hi

working good

Thanks