AFAIK, you can't create a pivot table that looks EXACTLY the way you show it in your second image. If you can live with the additional column to appear before the Measures and not after, then you can possibly add a calculated Dimension, with the use of the function AGGR(), to calculate the desired ratio. Something like this:
You could also use the function Dimensionality() to only calculate this result at a certain level of totals.
Allow me to invite you to my session on Set Analysis and AGGR at the Masters Summit for Qlik, where I will be teaching some of these advanced techniques of using Set Analysis and AGGR() for advanced analytics.