Forum Discussion
conditional count
Hi Anonymous ,
Can you please share the error message again? The photo is missing. And if you could share a dummy pbix file, we will understand the actual situation clearly and solve it quickly.
Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- amitchandak6 years agoSuper User
Looking at the data screenshot, you posted earlier. Looking at yellow and orange, I can not make a logic when to count and when to distinctcount. But assume you have such condition that can give difference
then try a new measure
measure = var _cnt = calculate(count(table[subject]),table[subject] = "???") var _discnt = calculate(distinctcount(table[subject]),table[subject] <> "???") return _cnt + _discnt - v-xuding-msft6 years agoCommunity Support
Hi Anonymous ,
Sorry for late back. Could you tell me if your problem has been solved? If it is, kindly mark the helpful answer as a solution if you feel that makes sense. Welcome to share your own solution. More people will benefit from here. If you are still confused, please share a dummy pbix file rather than a report from service.
Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous6 years agoNot applicable
Hello,
I still have this problem. Because I can't sum these values.
thanks