Forum Discussion
Getting a 0 and not blank
I have the following measure but some rows return a blank instead of a 0 if there were no results?
Claim Count Open = CALCULATE(COUNT(LossRunToExcel[Claim Number]),LossRunToExcel[Claim Status] <> "Closed")
Is there a way to introduce "0" if there is no count for a row?
Hello, something like this should fix it:
=CALCULATE(COUNT(LossRunToExcel[Claim Number]),LossRunToExcel[Claim Status] <> "Closed")+0cheers,
Hello bdehing,
Try with COALESCE formula. It should solve it by giving a "0" in case there is not data. For your case, the final formula would be:
Claim Count Open = COALESCE(CALCULATE(COUNT(LossRunToExcel[Claim Number]),LossRunToExcel[Claim Status] <> "Closed"),0)
4 Replies
- samdthompson
Memorable Member
Hello, something like this should fix it:
=CALCULATE(COUNT(LossRunToExcel[Claim Number]),LossRunToExcel[Claim Status] <> "Closed")+0cheers,
- JasserBIFrequent Visitor
Hello bdehing,
Try with COALESCE formula. It should solve it by giving a "0" in case there is not data. For your case, the final formula would be:
Claim Count Open = COALESCE(CALCULATE(COUNT(LossRunToExcel[Claim Number]),LossRunToExcel[Claim Status] <> "Closed"),0)
- bdehning
Post Prodigy
Thank you. What if I need to do the same thing for Conditional or Custom Columns, if there is no measure involved.