Getting Nan value when trying to do division transformation

Dear team,

I am getting NaN response after doing the transformation. I am trying todo two queries to elastic search and get the difference for getting a percentage change.

What i see from the debug is that the transformation is acting on an array of data rather tahn a value. How can i ensure that I work with just one value and not an array ?