Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All.
I am trying to count the number of customers if the condition is met, but I don't get the correct answer.
Ex.
Pol_no | info_no | customers |
---|---|---|
11223 | 12515 | A |
1233 | 11223 | B |
105053 | 105053 | C |
I used:
if(Pol_no = info_no),count(distinct customers))
What else can I try to give me the answer of 2?
Try this:
=Count({<customers = {"=Pol_no = info_no"}>}DISTINCT customers) or
=Count(DISTINCT If(Pol_no = info_no, customers))
Because the condition has to be met, so only some of the customers should be counted
Attaching a sample to look at.
HTH
Best,
Sunny
Have you tried my answer?
=Count({<Pol_no=P(info_no)>} customers)
I just did Piet and it works like a charm
Thank you, it workes
No problem