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

Value based on the previous value

$
0
0

Hello!

I joined my OLAP cube (Excel). I would like to see the new column (Plan), if I enter the value of the parent, divide the values ​​according to the percentage in the previous column. I can do that, but if you want to move the time dimension, it is destroyed. For example:

Present ValueFuture Value

Sum1200 I enter here: 2400

Product1500 calculates here: 1000

product group1100 calculates here: 200

product group2200 calculates here: 400

product group3200 calculates here: 400

Product2700 calculates here: 1400

product group4100 calculates here: 200

product group5600 calculates here: 1200

The time dimension has three hierarchy. Year, quarter, month. If I'm using what-if analysis, with the mdx: 

iif(

[Product].CurrentMember.Parent.name = 'All', 0

,

([Measures].[PresentValue],[Product].currentmember)

/

([Measures].[PresentValue], [Product].currentmember.parent,

[DIMTIME].[Hierarchy].[All],

[ProductGroup].[Hierarchy].currentmember.parent)

)  


And to report on the basis of year, it's all right to bottom. However, if the quarter or month to write it and I step up, it breaks down. What am I doing wrong?


Viewing all articles
Browse latest Browse all 14337

Trending Articles



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