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: 
dominic_marchan
Contributor III
Contributor III

Count

Hi all,

 

I have what seems to me like a simple question but cannot seem to find a solution.

I have sales and budget by items.

I want to have a KPI that shows me the count of items that have sales below budget, any ideas?

 

I included a simple dataset example where the count for the KPI should show 1

 

Thanks

1 Solution

Accepted Solutions
MayilVahanan
MVP
MVP

Hi @dominic_marchan 

Try like below

=Count({<Item = {"=sum(sales)<Sum(budget)"}>}DISTINCT Item)

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

View solution in original post

2 Replies
MayilVahanan
MVP
MVP

Hi @dominic_marchan 

Try like below

=Count({<Item = {"=sum(sales)<Sum(budget)"}>}DISTINCT Item)

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

Works like a charm thanks