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

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...