Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
04382072
Contributor
Contributor

My data contains numeric and %

My data contains numeric and % values but when I load them in the % data is converted to numeric - ie 50% shows as .5.  How can I get this to report correctly within Qlik Sense ?

2 Replies
treysmithdev
Partner Ambassador
Partner Ambassador

What is correct in this scenario? In most tools a field will be conformed to a single data type/format.  If you want 50% to be 50, then you will need to account for that in the load script. If you want it to display as 50%, then you will have to convert the field to text. 

To strip the % and make it 50, you can do something like:

Num#(PurgeChar(Text([Field]),'%')) as [Field]

Blog: WhereClause   Twitter: @treysmithdev
anseglko
Creator
Creator

When you put the % value to a chart, you can edit the properties, change "Number formatting" to "Custom" and in the "Format pattern" replace "#,##0.00" with "#,##0%" (or "#,##0,0%" for 1 decimal). Qlik should convert values like 0.5 to 50% by itself.