Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I have a group of five products as follows:
A
B
C
D
A
I need a formula that returns the number of different products, so it should return 4 (A, B, C, D). I used "count" but it gives 5 (Ax2, B, C, D).
Could you please help ?
thks,dani
You can use count (Distinct Product).
You can use count (Distinct Product).
Count( DISTINCT Item)
count(DISTINCT Product)
Count(Distinct Product)
=Count(Distinct Product)
i think your problem is Solved mark this question as Answered
And Count(distinct ...) is not single threaded. This is a myth. See
http://community.qlik.com/blogs/qlikviewdesignblog/2013/10/22/a-myth-about-countdistinct
HIC
It is not single threaded, if it is on a field in the fact table
but it is, if it is on the dimension table.
have I not understood correctly?
There is a (usually small) phase in the chart evaluation that is single threaded, and that is when the chart "generates the combinations" over which the aggregation should be made. This affects all charts with fields from several tables, as well as those that contain Count(distinct ...). Apart from that, it is multi threaded.
HIC