Add Cumulative sum and cumul %

hello iam new in kibana so i need some help


as you can see i need to add some formula like this
1
THANK YOU

You can do cumulative sum in Lens but only for tables that use a date histogram. So for example using the flights sample dataset you can get a table per week, counting records, and with two columns one with the sum of DistanceKilometers and another with the cumulative sum of the previous aggregation.

If you use a keyword field then the tor terms agg does not enable the cumulative sum for metric columns