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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
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

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

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