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: 
sutoniusahadong
Contributor
Contributor

Using AVG in set Analysis

Dear All,

Can help me, is it possible to run this script

=COUNT(DISTINCT {<Avg(BOBOT)={">3.05"}>} EMP_NO)

What alternative i can use ?

 

 

1 Solution

Accepted Solutions
sunny_talwar

Try this instead

=Count(DISTINCT {<EMP_NO = {"=Avg(BOBOT) > 3.05"}>} EMP_NO)

View solution in original post

3 Replies
HirisH_V7
Master
Master

You can use if condition like,
If(Avg(BOBOT)>'3.05',
COUNT(DISTINCT EMP_NO)

i don't think set-analysis will work such way, will check anyway. You can do this avg in script and create a column. you can use the same in set analysis directly.

HirisH
sunny_talwar

Try this instead

=Count(DISTINCT {<EMP_NO = {"=Avg(BOBOT) > 3.05"}>} EMP_NO)
HirisH_V7
Master
Master

Cool 🙂 it working bro. @sutoniusahadong  you can use this & close thread.

HirisH