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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
tinkerz1
Creator II
Creator II

Relationship between Distinct and Fields

HI,

I have in a chart the  dimensions 'Date' and 'Type' but I also have a further field to group by called 'Area', then I want to count the distinct Salesperson

How do I set the dimension and expression to have 2 Dimensions but be grouping by 3 dimension and perform a count distinct

Thanks

4 Replies
sunny_talwar

May be use Aggr Function:

Sum(Aggr(Count(DISTINCT Measure), Dim1, Dim2, Dim3))

Peter_Cammaert
Partner - Champion III
Partner - Champion III

So for each distinct value of Date and Type, you will get multiple count(DISTINCT Salesperson) values, one for each hidden Area value. What do you want to do with those values? Because in the end they'll have to fit in a single expression result box that only accepts a single value.

IMHO adding them back together makes the third dimension pretty much useless.

Peter_Cammaert
Partner - Champion III
Partner - Champion III

Sorry, there is a way out for this and it is a simple one.

Create a straight table, add the three dimensions and the expression count(DISTINCT Salesperson), and in tab Presentation, hide the third dimension column.

You'll now have multiple rows with the same Date/Type values and different or identical expression results. Because behind the scenes, the third dimension will still force different outcomes on different rows.

tinkerz1
Creator II
Creator II
Author

Thanks to both, I was after the row count and these solutions will both work.

Thanks.