
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to create a Not Equal to Zero condition in Set Analysis?
I know how to do set analysis with text, but with numerical values, I'm not sure. I have a condition where I need to exclude all $0 values from my calculation. Here is my syntax so far:
[Gross Sales Order US Dollar Amount]-=0
How do I select where values are not equal to zero?
- « Previous Replies
- Next Replies »


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
[Gross Sales Order US Dollar Amount ] = -0
Note the position of the "-", to the right of "=".
-Rob

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't see a change when I move the "-" sign to the right of "="

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What about less than 0 or greater than zero?


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Shouldn´t it be
[Gross Sales Order US Dollar Amount]-={0}
?
Regards, Thomas

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Or you use the if function instead of set analysis ...


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you post the expression you are using?
-Rob


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
-= and =- are two different things in Set analysis.
-=0 means "remove 0 from the current selections".
=- means "select not 0".
-Rob

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
in this case i will use the if function
if [Gross Sales Order US Dollar Amount] <> 0, Parameter
You can use any of your dimensions for the parameter


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Use <[Gross Sales Order US Dollar Amount] -= {0}> if it's numerical value or
If it's a string use <[Gross Sales Order US Dollar Amount] -= {'$0'}> in your set analysis expression.
Afsar Shaikh
Project Manager- QlikView Dev. & Support
Afsar Shaikh
Email- afsar.shaikh@live.com

- « Previous Replies
- Next Replies »