'Ksqldb calculate percentages of change for window

I have simple table by tumbler window 1 min with field TITLE and Count.

enter image description here

have you seen this many times: enter image description here

How can I calculate the percentage changes relative to the last window ?

Expected result: enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source