Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I using the num() function in a text object and I would like to add + or - according to the calculation result. The expression is a trend current period in comparison to previous period.
I tried several options including '+#,###' and +'#,###'which didn't work.
Any ideas?
Thx!
Hila.
=num(MyNum,'+#,##0;-#,##0')
=num(MyNum,'+#,##0;-#,##0')
Or even just like this for little less typing :
=num(MyNum,'+#,##0')
Hi,
Try like this using Num()
Syntax: Num(Number, 'Positive Number format;Negative Number format')
Example:
num(-10000,'+#,##0;-#,##0') - Output: -10,000
num(10000,'+#,##0;-#,##0') - Output: 10,000
Hope this helps you.
Regards,
Jagan.
On text box try like below expression
=if( Sum( YourMetricHere ) <= 0, '-', '+' ) & Fabs( Sum ( YourMetricHere ) )
Thx Massimo Grossi! this works great!
Hi Jegan,
I wanted to display +1000 for positive and -1000 for negative. See the marked correct answer for the syntax.
Thanks for your help!