Divide the table field values by certain number

The elasticsearch index data looks like this:
The table fields have large value. I want to divide all the values by a certain value (say 1 million). How do I do this?
I am using grafana v6.7.3. I have used “raw document” as metric for query, and selected “JSON data” for “Table transform” option