Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I want to use the sum of a distinct count based on two values.
For example my values are
recno | dept | val |
---|---|---|
1 | dept1 | val1 |
2 | dept1 | val2 |
3 | dept1 | val1 |
4 | dept2 | val1 |
5 | dept1 | val1 |
So the distinct count for dept1 should be 2
When I use the expression Sum(Aggr(Count(Distinct dept),val)) I get the correct value when I only use [dept] as dimension in a pivot table.
However : I want to use [val] as a dimension too.
How do I have to change my expression ?
Count(distinct(dept & val))
COUNT(DISTINCT TOTAL <dept> val)
or
COUNT(DISTINCT TOTAL <val> val)
This works fine when no selection is made. Probably I misdefined my question.
This is what i need :
I have to count every record per year,per dept.
The result should not change when a selection is made. In a chart [val] has to be multiplied with the result of the count.
Because I am still struggling with the "set analysis" options, I don't know how to solve this
You should probably not use Aggr() but instead use set analysis.
Count ( {1} distinct Val )
HIC
Hi, how can i use sth like that; count({1}distinct val), it doesnt work like this. What i need is on my post which is Pivot Table total func problem. Thanks for now.