Some of my data for smaller time values may result in a divide by 0 error. At the moment, if this happens the whole visualization breaks and I can't see any columns even with correct data for that time period.
Is there any way to rewrite the math function so that it can handle this potential error but still display properly?
The current expression is:
divide(subtract(params.MaxA, params.MinA), subtract(params.MaxB, params.MinB))
You could use Lens formula to achieve what you want. Use ifelse function where you specify a condition. In the condition you can use eq function to compare the denominator to 0. Let me know if you need further guidance.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.