Forum Discussion
YBavré
3 years agoFrequent Visitor
Distinctcount on two filter values
Hi, I wonder if someone could help me with this issue. I have the folowing table: Enterprise_Nbr LOB (Line_of_business) 1 A 2 B 3 B 1 B 4 C 5 B 2 B 1 C I ...
YBavré
3 years agoFrequent Visitor
tamerj1 thnaks a lot: it does the job and I get the resut I was looking for.
Best regards.
tamerj1
3 years agoCommunity Champion
YBavré
As per speedramps recommendation, the following should perform faster.
X =
COUNTROWS (
FILTER (
VALUES ( ENHANCED_CKI_CUSTOMER[Enterprise_Nbr] ),
ISEMPTY(
EXCEPT (
{ "A", "B" },
CALCULATETABLE ( VALUES ( ENHANCED_CKI_PRODUCTS[LOB] ) )
)
)
)
)