Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

Weighted Performance calculated measure

$
0
0

Hi,

I have a cube with two dimensions Entity and KPI each dimensions contain a hierarchy. I need to create a calculated measure named Performance. The formula for this measure is Weighted Total Passed / (Total Audited - Total Excluded) and all of them are measures that are built over the fact table.

The KPI dimension hierarchy has two levels Category and KPI. At the KPI level the Performance Measure is calculated correctly without any issues. However, the aggregation on the Category level is not as expected. For example let’s assume that a category named Cat1 has two KPIs under it which are KPI1 and KPI2 the figures are as the following:

KPI1 Performance = 86005.39 / (183372 - 132) = 46.94%

KPI2 Performance = 23.35/(2328-354) = 1.18%

The performance of Cat1 should be KPI1 Performance + KPI2 Performance which is 46.94% + 1.18% = 48.12%.

However, the displayed results is (86005.39 + 23.35)/ (183372+2328 -132-354) = 46.45%

What seems to happen is that the SSAS sums up each measure before performing the needed formula.

Appreciate your help. 


Omar Zyadat



Viewing all articles
Browse latest Browse all 14337

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>