Skip to content
Advertisement

How to subtract the cumulative values of confirmed, recovered and deseased?

I would like to subtract the cumulative values of confirmed, recovered and deceased. However, it does not work, Google BigQuery keeps giving me this error message enter image description here(look at the pic). All attributes are INTEGER.

Advertisement

Answer

The error message is pretty clear. You have mixed types in the data — suggesting that something is wrong.

Presumably, the offending value is cumulative_recovered which you do not show to be an int64.

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