Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements
Modernize Your QlikView Deployment webinar, Nov. 3rd. REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Not applicable

Showing negative as a positive

I am trying to show values in my X axis as positive figures - I only want these figures to "appear" positive and not actually be positive.

Please see below:

Picture12.png

Picture13.png

Picture14.png

8 Replies
Highlighted

Use fabs() function.

Regards

ASHFAQ

Highlighted
MVP & Luminary
MVP & Luminary

Hi,

Use Fabs() like below

Fabs(Sum(Sales))

Hope this helps you.

Regards,

Jagan.

Highlighted
Not applicable

using fabs gives me the below graph.... I want the negatives to still be negative, just appear as though they aren't - just need to get rid of the "-"

Picture1.png

Highlighted
MVP
MVP

Fabs(YourExpression)

Highlighted

Then try something like this

If(Sum(Sales)>0,Sum(Sales)

Regards

ASHFAQ

Highlighted
MVP
MVP

Go to Expression Tab

Click + on your expression

Go to Bar Offset

Add whatever is the Min Value of your Expression

in your case it looks like -5... so write 5 in bar offset..

Highlighted
Not applicable

The colour of my bars have now disappeared and the scale at the bottom is still showing negative numbers

Highlighted
Not applicable

this will give me positive numbers - I need the negative numbers to be negative but not show the "-"

In excel I would use custom formatting and say (#,##0;#,##0,"-")