Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9076

EXPRESSION vs FACTOR on NULL (no data)

$
0
0

Hi Experts,

 

I'm using BPC 10 NW. I have a question about the execution of the syntax: *REC(EXPRESSION=%VALUE%....

 

Here is my script:

 

*XDIM_MEMBERSET TIME = %TIME_SET%

*XDIM_MEMBERSET CATEGORY = Actual

*XDIM_MEMBERSET AUDITTRAIL =*

*XDIM_MEMBERSET MEASURES = YTD

*XDIM_MEMBERSET SCOPE = %SCOPE_SET%

*XDIM_MEMBERSET RPTCURRENCY = *

*XDIM_MEMBERSET ENTITY = *

*XDIM_MEMBERSET INTERCO = *

*XDIM_MEMBERSET FLOW = F99

*WHEN ACCOUNT.DIMLIST

*IS BS

*REC(EXPRESSION=%VALUE% - ([FLOW].[F00]),FLOW=F20)

*ENDWHEN

*COMMIT

Basicly, i need to calculate F20 = F99 - F00

 

Here is my data, after running the logic script

 

AccountF99F00F20
Account11002080
Account21010
Account330
Total1105090

 

F20 for Account3 is not calculated, because F99 is empty and it seems that when the scoping returns no data, the record syntax wont calculates anything. Right now i used FACTOR, and the result is correct. Here's my script


*XDIM_MEMBERSET FLOW = F99, F00

*WHEN FLOW

*IS F99

*REC(FACTOR=1, FLOW=F20)

*ELSE

*REC(FACTOR=-1, FLOW=F20)

*ENDWHEN

*COMMIT


I'm curious on how the logic works and is there any other way to use the EXPRESSION syntax on the situation like this?


Thanks for helping.




Viewing all articles
Browse latest Browse all 9076

Trending Articles



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