Forum Discussion
Incorrect Total in table
Hi,
I have the measure to count how many members have that ppl category.
Hi, yaman123
Please try the below measure.
No of Members =
COUNTROWS (
FILTER (
VALUES ( 'Payment by Member Query'[MEMBER_CODE] ),
NOT ISBLANK ( [Total PPL] )
)
)Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster.
8 Replies
- Jihwan_KimSuper User
Hi, yaman123
Please try the below measure.
No of Members =
COUNTROWS (
FILTER (
VALUES ( 'Payment by Member Query'[MEMBER_CODE] ),
NOT ISBLANK ( [Total PPL] )
)
)Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster.
- yaman123Post Partisan
Great thank you!
Also i would like to calculate the % e.g No of Members / Total. How can this be written. I have a measure and it isnt taking into account the correct figures.
% PPL = [No of Members]/CALCULATE(DISTINCTCOUNT('Payment by Member Query'[MEMBER_CODE]),ALLSELECTED())It should give a total of 100% but showing as 97.05%- Jihwan_KimSuper User
Hi, yaman123
Thank you for your feedback.
I think the distinctcount/allselect in %PPL measure = counting all members including zero sales.
I think this percentage is also useful, but if you don't need this, then you can distinct count all members who has non-zero-sales. Something like below...
calculate (
COUNTROWS (
FILTER (
VALUES ( 'Payment by Member Query'[MEMBER_CODE] ),
NOT ISBLANK ( [Total PPL] )
), allselected(PPLBUCKET)
)Thank you.