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: 
Anonymous
Not applicable

MIN value from Aggr () returns zero

Hi all,

I am new to Qlik and starts to learn with aggr function. I would like to get the minimum sales by [province] using Min(Aggr(Count([Order ID]), Province)), but it always returns zero. The correct answer should be 79. Any ideas please?

Capture.PNG

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

try


Min({<Province={"=Count([Order ID])>0"}>} Aggr(Count([Order ID]), Province))

View solution in original post

3 Replies
Anonymous
Not applicable
Author

try


Min({<Province={"=Count([Order ID])>0"}>} Aggr(Count([Order ID]), Province))

Anonymous
Not applicable
Author

It works. Thank you so much.

Anonymous
Not applicable
Author

then close the thread please...