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: 
Chandu
Contributor II
Contributor II

Not getting output

Hi,

I have an condition that I need to represent in combo. Im trying to use syntax: sum(sales)/sum(quantity)*quality but I'm not getting any output.

 

1 Reply
Or
MVP
MVP

It's hard to guess what the problem is with no sample data or explanation of the structure, but the most likely thing is that there is more than one quality value and since it's not in an aggregation function, that will result in a null.

Try e.g.

sum(sales)/sum(quantity)*sum(quality)

or

sum(sales)/sum(quantity*quality)

or whatever is appropriate for your dataset.