Custom Process Connection and Activity KPI

Dear Celonis-Team,

I want to visualize the percentages of Process Connections instead of their absolute values.
See the picture below:

However, I am too stupid to write the function for this - I would appreciate any help how to get to this result.
Have a great day and weekend!