Quantcast
Channel: SCN : Discussion List - SAP Planning and Consolidation, version for the Microsoft platform
Viewing all articles
Browse latest Browse all 1545

MDX Formula to get YTD Value in Script Logic

$
0
0

Hi,

 

I'm at my wits end trying to figure this one out via trial and error, the manuals, or the forums. (It's more than probable my MDX skills are not up to it.)

 

SAP BPC 10.0 Microsoft (10.0.17.0), SQL Server 2012 (or 2008),

Financial Model, Periodic Time Dimension.

Model Dimensions: Account, Category, Department, DataSrc, LegalEntity, RptCurrency, Time.

 

I want to put the YTD value for the IncomeStatement (a rollup) into a base account for any one month. I am hard-coding Dimension Members for now

 

The Script Logic is below. (I am using Capex001, Capex002, Capex003 as the destination. It could be any base member, really). Also NETP_AND_L has a Formula in the Member Sheet of ([ACCOUNT].[INCOMESTATEMENT],[MEASURES].[YTD])


The issue I am having is with the line in red. Is the syntax correct?

 

*CALCULATE_DIFFERENCE=0

 

*XDIM_MEMBERSET ACCOUNT = <ALL>

*XDIM_MEMBERSET CATEGORY = ACTUAL

*XDIM_MEMBERSET DEPARTMENT = <ALL>

*XDIM_MEMBERSET GRPDATASRC = <ALL>

*XDIM_MEMBERSET LEGALENTITY = GRM01,GRM02,GRM03

*XDIM_MEMBERSET RPTCURRENCY = ZAR

*XDIM_MEMBERSET TIME= 2014.AUG

 

*CALC_DUMMY_ORG ACCOUNT = PARENTH1

 

*WHEN ACCOUNT

*IS "#INCOMESTATEMENT"

  *REC(FACTOR = 1, Account=Capex001)

  *REC (EXPRESSION = ([ACCOUNT].[INCOMESTATEMENT],[MEASURES].[YTD]), ACCOUNT = "Capex002")

  *REC (EXPRESSION = [ACCOUNT].[NETP_AND_L], Account = "Capex003")

*ENDWHEN

 

*COMMIT

 

And this is a subset of the results.

 

ACTUAL,ZAR,2014.AUG,CAPEX001,GRM03001,INPUT,GRM03,-243.1300000000

ACTUAL,ZAR,2014.AUG,CAPEX002,GRM03001,INPUT,GRM03,0

ACTUAL,ZAR,2014.AUG,CAPEX003,GRM03001,INPUT,GRM03,0

ACTUAL,ZAR,2014.AUG,CAPEX001,GRM01005,INPUT,GRM01,-30779.8400000000

ACTUAL,ZAR,2014.AUG,CAPEX002,GRM01005,INPUT,GRM01,0

ACTUAL,ZAR,2014.AUG,CAPEX003,GRM01005,INPUT,GRM01,0

 

So the Periodic IncomeStatement is pulling through, but not the YTD. Which means the MDX I am specifying is probably incorrect, or something.

 

An ideas?

 

Kind Regards

 

Nick


Viewing all articles
Browse latest Browse all 1545

Trending Articles



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