Forum Discussion
count calculation occurence
Hi,
I have to find count for below data ...
Filter already applied is
- endorse value should zero or greater than zero
- Concatenate the policy no + Endorse value and then apply the duplicate rule of counting it as “1” (one) if there are more than one of the same policy no + Endorse value.
- In this case with above data A1 policy no have 4 Endorse value and A1 policy no with endorse value 1,2 have duplicate...So with data total for A1, i have almost 6 ...but by avoiding duplicate with (Concatenate the policy no + Endorse value) count should be 4 for A1 alone....
How it possible in power bi?
Hi Anonymous
Based on your description, I create a sample, and it may give you pointers.
-
Create the measure:
mesure2 = CALCULATE(DISTINCTCOUNT('Table'[Endorse value]),FILTER(ALLEXCEPT('Table','Table'[Policy_no]),'Table'[Endorse value]>=0))result:
See sample file attached bellow.
Best Regards,
Community Support Team _ Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
3 Replies
- amitchandakSuper User
Anonymous , Try like
mesure = CALCULATE(countx(summarize(FILTER('Table','Table'[endorse value] > 0 )'Table'[policy_no],[endorse value]), [policy_no]))
- AnonymousNot applicable
here getting count based on endorse value greater than 0.But i want endorse value =0....Is it possible?Here by using above measure its endorse value=0 is not considering..
- v-xiaotangCommunity Support
Hi Anonymous
Based on your description, I create a sample, and it may give you pointers.
-
Create the measure:
mesure2 = CALCULATE(DISTINCTCOUNT('Table'[Endorse value]),FILTER(ALLEXCEPT('Table','Table'[Policy_no]),'Table'[Endorse value]>=0))result:
See sample file attached bellow.
Best Regards,
Community Support Team _ Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.