I have a requirement for calculating certain KPIs by profit-center. The SAP HANA AFL-BFL functionalities are perfectly suitable for this, but I am having performance problems.
Since the KPIs are required by profit centers - of which there are several 100 - each AFL-BFL function must be called for each profit center. I have implemented this by means of SQL-script in a procedure which contains a LOOP over all the profit centers. This is ofcourse very inefficient, but I cannot think of a better way to model this. In fact I cannot think of any other way model to implement this at all.
Any of the many creative brains out there with suggestions how to do this better?