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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
surajap123
Creator III
Creator III

avg

Hi All,

I want to get average of 1st and 2nd expression in the app.

avg(exp1/exp2)

Please help.

1 Solution

Accepted Solutions
Anil_Babu_Samineni

May be this?

Avg(Aggr((count({<Product = {"=sum(Sales)>0"}>}DISTINCT Product) / count(DISTINCT Product)), Category, Product))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

3 Replies
Anil_Babu_Samineni

May be this?

Avg(Aggr((count({<Product = {"=sum(Sales)>0"}>}DISTINCT Product) / count(DISTINCT Product)), Category, Product))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
mdmukramali
Specialist III
Specialist III

Hi,

may be try this,

=Num(count({<Product = {"=sum(Sales)>0"}>}DISTINCT Product)

/

count(DISTINCT Product),'#,##0%')

devarasu07
Master II
Master II

Hi,

Another simplest way like below

=Column(1)/Column(2)

Capture.JPG