Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Report with negative values

Hi guys,

There is a report with negative values,it should be displayed in brackets.

for eg. -5 it should be displayed as (5).

How to achieve it ?

Thanks.

3 Replies
Anonymous
Not applicable
Author

HI,

You can define a number format for it....

num(field,'##,#0;(##,#0)')

So defining the format in brackets after ; defines for negative values

krishnacbe
Partner - Specialist III
Partner - Specialist III

Try below expression

=if(Value<0 , '(' & fabs(Value) & ')',1)

Anonymous
Not applicable
Author

Defining If statement with concatenating () with value will result in string values instead of numeric,

while if using num() , then it will return in numeric values only...