Forum Discussion
tiffanynguyen
9 years agoRegular Visitor
NaN Error
I created a new field, Cost/Quantity, and the output is coming up at NaN. I was able to see the Cost by year on a bar chart and quantity by year on a bar chart fine, but when I tried to doing Co...
- Anonymous9 years ago
Vvelardenope, turns out this is a custom column in the query editor. No DIVIDE there.
MarcelBeug
Community Champion
9 years agoTypically you get NaN when dividing 0 by 0.
So adjust your formula something like if Quantity = 0 then 0 else Cost / Quantity.
tiffanynguyen
9 years agoRegular Visitor
How do i get rid of this? Would I be able to replace it with 0 or null?
- Vvelarde9 years ago
Community Champion
- Anonymous9 years agoNot applicable
Vvelardenope, turns out this is a custom column in the query editor. No DIVIDE there.
- Vvelarde9 years ago
Community Champion
Anonymous Thanks. Yes, Divide don't apply in query Editor.
- Anonymous8 years agoNot applicable
This worked for me beautifully thank you
- gabrielvigo8 years ago
Helper I
Anonymous
How did you write the formula in the custom column?
I have the same issue.
- Mownaradha7 years agoFrequent Visitor
super!!!! Thanks Sir!!!!