Forum Discussion
I need help with Distinct Count with excluding filter
- 1 year ago
Hi TcT85
I included blank value in my table and now I get the following result
To fix that, I have to add the modify my formula with:
Yield =VAR TotalProduced =SUM('Produced Table'[Quantity])VAR DistinctDefects =CALCULATE(DISTINCTCOUNT('Defect table'[Serialnr]),FILTER('Defect table','Defect table'[Type] <> "Warning"&& 'Defect Table'[Type] <> ""))RETURNIF(TotalProduced > 0,1 - DIVIDE(DistinctDefects, TotalProduced),BLANK())
Because due to my test, the value was empty and not blankIf it is not working, you have to replace&& 'Defect Table'[Type] <> ""By&& 'Defect Table'[Type] <>BLANK()
Hi TcT85,
Thank you for reaching out to Microsoft Fabric Community.
Thank you bhanu_gautam, mdaatifraza5556, Cookistador for the prompt response.
As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided by the super user's resolved your issue?
If our super user's response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.
Thanks and regards,
Anjan Kumar Chippa
Hi @TcT85,
We wanted to kindly follow up to check if the solution provided by the super user's resolved your issue?
If our super user's response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.
Thanks and regards,
Anjan Kumar Chippa