
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Tags:
- filter not equal to
- « Previous Replies
-
- 1
- 2
- Next Replies »

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Could you please show as 5 lines of ur table maybe so that we can work on ur data directly?
Thanks


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
maybe you have to untick "Include zero values" option under Add-ons->Data handling section.


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
try this:
sum({<[Amt USD]={">0"}>}[Amt USD])


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
For if condition, you can try like below
If(sum([Adj Amt USD])<>0, sum([Adj Amt USD]))
Please close the thread by marking correct answer & give likes if you like the post.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
you could do an if statement.
if(sum(AMT)=0,0,NULL)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May be try this:
=sum({<[Amt USD] = -{0}>}[Amt USD])

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Or try this:
=sum({<[Amt USD] = {"=[Amt USD] <> 0"}>}[Amt USD])

- « Previous Replies
-
- 1
- 2
- Next Replies »