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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
tanjavarwijk
Contributor III
Contributor III

Count when inventory <>0

I trie to count for each location, the number of items when their inventory is not 0

if(Sum(Item_LE_Quantity)<>0,count(distinct(VE_Item_Nr)))

This gives not the right values.

2 Replies
kumarnatarajan
Partner - Specialist
Partner - Specialist

Hi,

Try this one.

=count(distinct  {$<VE_Item_Nr = {"=Sum(Item_LE_Quantity) > 0"}>}  VE_Item_Nr)

This is Expression give greater then 0 value

tanjavarwijk
Contributor III
Contributor III
Author

Hi,

Almost,

When I filter the dimension it gives the right answer, otherwise not

do I have to delete $ ?