suppose column a has value of 10 and 20 and column b has 1 and 0
|a|b|
|10|0|
|20|0|
|20|1|
now i want to count of column a where b = 0 but it will count both 10 and 20 because both has 0 but i want only 10 to be count because 20 has both combination of 0 and 1 so where ever it has combination of 0 and 1 of any value i dont want to count.
can someone please help me with this thank you.
Hi @Deepak1
You could sum b for each a and countif the sum(b) is 0.
sum(b,[a])
countif((a),sum(b,[a])=0)
BR
and also I want to use this in KPI as distinct count which will give output as 1.
@Deepak1 Were you able to find a solution for this or was @ErikG 's suggestion helpful?
I would also suggest trying and ifelse statement:
ifelse(
{b} = 0,
distinct_count({a},
Null)
Hello @Deepak1 !
Were you able to try my suggestion above or were you able to solve this? It has been some time since we heard from you but would still like to help you find a solution.
If we do not hear from you in 4 days this topic will be archived.