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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
ugurarslan
Creator
Creator

Show me amounts not equal to zero

Dear all,

I am trying to write a query which shows me all amounts not equal to zero.

I wrote these expressions but it doesn't work.

=sum({<[Amt USD]-={"0"}>}[Amt USD]) =  I still see zero

If(sum([Adj Amt USD])>0 or sum([Adj Amt USD])<0,sum([Adj Amt USD])) = It shows me also NULL values.


I just need to see all AMT USD not equal to zero.


Thanks


Ugur

10 Replies
OmarBenSalem
Partner - Champion II
Partner - Champion II

Could you please show as 5 lines of ur table maybe so that we can work on ur data directly?

Thanks

agigliotti
MVP
MVP

maybe you have to untick "Include zero values" option under Add-ons->Data handling section.

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

try this:

sum({<[Amt USD]={">0"}>}[Amt USD])

Thiago_Justen_
MVP
MVP

Here it is some tips:

1 - As Andrea already said, you can untick "show zero values" option;

2- You could also try this expression sum({<[Amt USD]={">0"}>}[Amt USD])


3- Or this one: Only({<[Amt USD]={">0"}>}[Amt USD]);


4- Considering that Amt USD has null values:

sum({$-<[Amt USD]={"*"}>}[Amt USD])


I hope it helps you. But if not, please share a mock up with us.

Cheers

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
MayilVahanan
MVP
MVP

Hi

For if condition, you can try like below

If(sum([Adj Amt USD])<>0, sum([Adj Amt USD]))

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
ugurarslan
Creator
Creator
Author

Thanks a lot, but the table contains and positive and negative amounts for an example 1 and -1. Will this function also apply to these?

hamza99a
Creator II
Creator II

you could do an if statement.

if(sum(AMT)=0,0,NULL)

BalaBhaskar_Qlik
Master
Master

May be try this:

=sum({<[Amt USD] = -{0}>}[Amt USD])

BalaBhaskar_Qlik
Master
Master

Or try this:

=sum({<[Amt USD] = {"=[Amt USD] <> 0"}>}[Amt USD])