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

Script Help

Hi All,

I have one field in my database suppose name as quantity.

Quantity
1
2
3
-4
-5
-6

I need Quantity field as only positive values in it in back end script only like :

Quantity
1
2
3
4
5
6

Kindly help.

Regards,

Mahamed

4 Replies
arulsettu
Master III
Master III

may be this

fabs(Quantity) as field

PrashantSangle

If you want to convert - ve value in +ve then use fabs()

or

if you want only +ve value then in where clause you can write

where Quantity>=0

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 🙂
avinashelite

if you need only +value s when you use the where condition in the script like

LOAD *

from

table

where Quantity>=0

raajaswin
Creator III
Creator III

Hi,

Also you can try purgechar(Fieldname,'-') or fabs() according to your format..