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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
sonikajain
Partner - Contributor
Partner - Contributor

Format for displaying negative numbers in ()

Hi all,

In one of my requirements, I need to display negative numbers in brackets for  specific rows. I am using 'IF ' for this in expressions and the num () function - with format '#.#%;(#.#%), but it is giving me discrepnacies in result as in -

for Num (-1.4,'#.#%;(#.#%)')   result is (1.4%) but for Num (1.4,'#.#%;(#.#%)') the result of 140%

Please help me on this.

Sonika

4 Replies
sonikajain
Partner - Contributor
Partner - Contributor
Author

for Num (-1.4,'#.#%;(#.#%)')   result is (1.4%) but for Num (1.4,'#.#%;(#.#%)') the result of 140%

Nicole-Smith

Num (1.4,'#.#;(#.#)') &'%'

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     You should use like this

     =Num (1.4/100,'#.#%;(#.#)%')

or

     =Num (1.4/100,'#.#;(#.#)')&'%'

Not applicable

Hi,

In the Properties Tab of the chart,

Goto Number Tab,sleect the expression

goto Fixed to and paste the below format in the format pattern.

#.##0,00; (#.##0,00)

Regards,

Snehal Nabar