Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Convert negative values to postive

Hi

How can i convert a measure which is displaying as all negatives to positive vales?

Thanks

20 Replies
Anonymous
Not applicable
Author

Try to load

-field

maxgro
MVP
MVP

fabs for absolute value

PrashantSangle

Hi,

In front end you can use

fabs()

or

multiply with field into -1

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 🙂
ashfaq_haseeb
Champion III
Champion III

Hi,

look at Fabs() function

Regards

ASHFAQ

Not applicable
Author

do you have an example

Not applicable
Author

sorry do you have an example

amit_saini
Master III
Master III

Hi,

Try this:

You could change it in Number formatting tab.For both positive and negative as same

#,###;#,###

Second try this also:

use fabs() function hope this could help u

from QV Help :

fabs( x )

The absolute value of x. The result
is a positive number.

Examples:

fabs( 2.4 ) returns 2.4

fabs( -3.8 ) returns
3.8

Thanks,

AS

PradeepReddy
Specialist II
Specialist II

Try with FABS()...


Ex:

FABS(2.4 ) returns 2.4

FABS(-3.8 ) returns 3.8

ashfaq_haseeb
Champion III
Champion III

Hi,

Run this script and drop value1 and value2

Load *,fabs(Value1) as Value2;

load * Inline

[

Date,Value1

01-01-2014,-1,

02-01-2014,-2,

03-01-2014,-1

04-01-2014,-4,

05-01-2014,-1,

06-01-2014,-6,

07-01-2014,-2,

08-01-2014,-8

09-01-2014,-5,

10-01-2014,6,

]

Regards

ASHFAQ