Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
JasonB1996
Contributor
Contributor

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

@JasonB1996 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]))

JasonB1996
Contributor
Contributor
Author

Correct.