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

aggr with set analysis


How i can write aggr funcation with set analysis.

My expression is--  count(aggr(if(count(index_id)>1,ID,emp_name,Sup_Name)))

Please help me urget basic.

Thanks in advance

Regards

Ashish

6 Replies
sibin_jacob
Creator III
Creator III

Hi Ashish,

Can you please elaborate your requirement.

Thanks,

Sibin Jacob.C

tresesco
MVP
MVP

Are you sure this is the right expression you are using? I guess there is some parenthesis issue.

Not applicable
Author

I want count(distinct id) where count(distinct index_id)>1

Regards

Ashish

jagan
Partner - Champion III
Partner - Champion III

Hi,

You missed on parenthesis

=count(aggr(if(count(index_id)>1,ID,emp_name),Sup_Name)))

I don't understand what you are doing with this, you are getting the count of SupName, you can also get the same by using below expression.  No need of Aggr().

=Count(DISTINCT Sup_Name)

Regards,

Jagan.

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try this

Sum(Aggr(If(count(distinct index_id)>1, 1, 0), id))

Hope this helps you.

Regards,

Jagan.

tresesco
MVP
MVP

May be like:

Count( {$<id = P({1<index_id={"=count(Distinct inex_id)>1"}>} id)>} Distinct id )

If not this, please share your sample app.