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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikviewwizard
Master II
Master II

Negative values in chart

Hi All,

How to show negative values in brackets () in pie chart?

For ex: -53 as (53) and -111 as (111).

Capture.PNG

16 Replies
qlikviewwizard
Master II
Master II
Author

Hi manojkulkarni ,

Thanks for your advise. I need to show negative mouse over values in brackets.

jagan
Partner - Champion III
Partner - Champion III

Hi,

Check this link

How to create a pie chart with positive and negative values

OR try this expression

=dual(fabs(sum(sales)),Sum(sales))

Regards,

Jagan.

manojkulkarni
Partner - Specialist II
Partner - Specialist II

Hi Arjun,

How did you solve this problem ? Please share the solution

qlikviewwizard
Master II
Master II
Author

Hi Manoj,

This is the celambarasansolution.

If(Sum(Sales)<0, Num(Fabs(Sum(Sales)), '(#,###'), Num(Sum(Sales), '#,###')

manojkulkarni
Partner - Specialist II
Partner - Specialist II

Thanks Arjun.

nagarjuna_kotha
Partner - Specialist II
Partner - Specialist II

PFA...