Skip to content
Advertisement

Bigquery error when powering negative number with decimal(float64)

I’m trying to calculate the CAGR using the formula in BigQuery

When running the query, somewhere in middle the values become POW(-0.0310044, 0.333333) and I’m getting error

I tried calculating the same value in a calculator and I get the result. What could be the problem and how do I solve it?

Advertisement

Answer

Try Below Code:

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement