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

Aggr sum distinct issue

Having an issue with aggr measure when the dimension is present as a filter as well as in table.

It's showing two figures when filter is selected and when it is not. I need same out put at a contract level.

Exp: Count(distinct {<[Cust_id]={"=Sum(Sales)>0"}>}Total <Contract_id>[Cust_id]

Here Cust_id and Contract_id both are present in table dimension. Please guide. Ty

Labels (1)
2 Replies
sidhiq91
Specialist II
Specialist II

@Mayur_Bisht Correct me if  I am wrong, as per my understanding you are trying to find the count of Customers whose Sum(Sales) >0

Aggr(Count(distinct {<[Cust_id]={"=Sum(Sales)>0"}>}[Cust_id]), [Contract_id],[Cust_id]))

Mayur_Bisht
Contributor II
Contributor II
Author

Correct.