Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
razvan_brais
Creator III
Creator III

Modify display value when sum<0

Hey guys. Me again. How can I modify the display of a value that is lower then 0;

I want that if the result is <0 to display it like this (value).

So if value is -150 to display (150)

1 Solution

Accepted Solutions
Anil_Babu_Samineni

Where you want to show this. I mean which object. If text object might be my solution is not work left all will work

Tri properties and them number tab choose

#.000; (#.000)

This format will give all positive number.

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

6 Replies
Chanty4u
MVP
MVP

try

use Fabs function

Fabs(urexpression)

EX:

If(fabs(sum(sales)=0,Value)

sushil353
Master II
Master II

Hi,

you can set the format like :

=num(sum(test),'#,##0.0;(#,##0.0)')

HTH

Sushil

razvan_brais
Creator III
Creator III
Author

Do I have to write it in the text format of the expression , or it`s in the expression itself?

Anonymous
Not applicable

Just use Fabs(Fieldname) as script, it will treat all -ve values as +ve values

Anil_Babu_Samineni

Where you want to show this. I mean which object. If text object might be my solution is not work left all will work

Tri properties and them number tab choose

#.000; (#.000)

This format will give all positive number.

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
razvan_brais
Creator III
Creator III
Author

Thank Anil , that worked.