Good day. We have old version which use at production.
Cacti version 0.8.8h
CentOS Linux release 7.9.2009 (Core). PHP 5.6.40. Apache/2.4.6. mysql Ver 15.1 Distrib 5.5.68-MariaDB
Graph Template :

created graph and datasource according to this template


finaly correct graph, with adequate, similar to be right values:

Now we have installed new version.
Cacti Version 1.2.16
Debian 10.8. PHP 5.6.40-41+0~20210213.47+debian10~1.gbp6fd845 / nginx 1.14.2 . mysql Ver 15.1 Distrib 10.3.27-MariaDB




As you can see we have same template and identical initial data to calculete 95th percentline, but the values we got at new cacti is wrong.
With any other intrface-graph-data source, the same situation with 95th values.
Please let me know if you need additional data on this issue.
Switch from max to current in the variables and the numbers will match. There was a change in behavior where max uses the max of the MAX consolidation function instead of the max of the AVERAGE consolidation function.
thanks for your advice, it helped