Forum Discussion
nicolas_q
4 years agoRegular Visitor
Replace Blank with 0
Hello all, the subject has been already discussed but I can't find a way to achieve what I need. The use case is the following: For some computers if a reboot is needed I have a value "1" if th...
- Anonymous4 years ago
Hi nicolas_q ,
I can reproduce your problem. I think this should be caused by your data model. You table should look like as below.
And you use count function in value field in card visual and filter [Reboot] column to get result. When you show items when the value is not 0 in [Reboot], Power BI couldn't find any hostname and it will return blank. Blank in Power BI logic is same as 0.
If you don't want to show blank in card visual, please try to create measure.
Count hostname = CALCULATE(COUNT('Table'[hostname]))+0Result is as below.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
danextian
Super User
4 years agoHi nicolas_q ,
You can modify your measure to include + 0.
MyMeasure =
[My Original Measure or Aggreation) + 0
//-0 will also work, 0 + will also work
VizzCrafter
2 years agoFrequent Visitor
Thanks for sharing this simple and easy solution. Thank you!