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

MDX PerriodsToDate and division in formula

$
0
0

Hello,

I have a problem about closing period measure 

so short description about my created environment.

I have dimension attribute  "Account Schedule Line". Each attribute value has defined roll up column, f.e.:

Account schedule line = rollup column mdx expression

a = null
b=null
c=a/b

This solution works fine when i analyze Account schedule lines variance, but when i have createdClosing Balance calculated member, i found some incorrect calculations.

Closing Balance measure is  defined using PeriodsToDate MDX function so when i try to analyze acc schedule line over few months, result is not calculated correctly:

f.e. 

January a=2, b=1, c=2
February a=4, b=2, c=4, should be c=2 

So c for February is calculated as (2/1)+(4/2)=4

i would like c to be calculated  as (2+4)/(1+2)=2

how could i implement this calculation?


Viewing all articles
Browse latest Browse all 14337

Trending Articles



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