Handling NaN values from calculations

I’m using the calculation transformation to divide two numbers but sometimes I get NaN which is fine but I want to show it as 0. Is there a way to do it? I’ve also tried to use an expression but got the same problem of not having a default value.

Welcome to forum

What is your data source and what data points from your data source are you doing this transformation on

My data source is OpenSearch. I have two count queries from it that I divide and when one is missing I get NaN