Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Format Problem

Hi all,

i am reading from an Excel file. Now, in a cell there can be a value 50 or 50%,#

In a chart on the surface i am representing the numbers with num(CELLVALUE, '# ##0.00').

Problem is that the 50 is correctly displayed as 50%, but the 50% is displayed as 5000.00%.

How can i avoid this in the LOAD script ?

Thanks a lot.

L

1 Solution

Accepted Solutions
MayilVahanan

Hi,

     You can use Purgechar(FieldName,'%') as FieldName , It removes % symbol..

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

4 Replies
Not applicable
Author

Num(left(FIELD,2),'#,##0.00%')

Not applicable
Author

Of course i can have also values like 100% or even 1000% in there....Is there a way to read until the '%' or just read the numeric chars ?

MayilVahanan

Hi,

     You can use Purgechar(FieldName,'%') as FieldName , It removes % symbol..

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
CELAMBARASAN
Partner - Champion
Partner - Champion

Try this

Replace(CELLVALUE,'%','')&'%' AS FieldName

or

PurgeChar(CELLVALUE,'%')&'%' AS FieldName