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

Re: Scriptlogic: Select statement with filter by property + %Entity_Set%

$
0
0

Ok,

Maybe it's posible to Filter the package, but i think that, modifying package it's not posible unless you add the desired Entities in COMBOBOX PROMPT.

but if they add more dimension members, i have to modify packages too... so that the reason I'm trying to do this in logic...

 

Filter Required in Data Manager Package Selection -BPC 7.5 NW

 

Problem is that, code has a lot of parts with MDX statements so i cannot use *WHEN/*ENDWHEN structures unless i modify entire script (a lot of code and is more complicated than the examples)

 

example:

If i debug with CALCULATE_DIFFERENCE = 0 i'ts not writing zero values (502 RECORDS)

*SELECT(%ENTITIES%,"[ID]",ENTITY,"[TYPE_SOC]='Y'")


*XDIM_MEMBERSET CATEGORY=TEST

*XDIM_MEMBERSET CURRENCY=LC

*XDIM_MEMBERSET ENTITY=%ENTITIES%

*XDIM_ADDMEMBERSET ENTITY=%ENTITY_SET%

*XDIM_MEMBERSET ACCOUNT=ACC1

 

*BEGIN

[ACCOUNT].[#DESTINATION]=-1*[ACCOUNT].[ACC1]

*END

 

*COMMIT

TO:

*SELECT(%ENTITIES%,"[ID]",ENTITY,"[TYPE_SOC]='Y'")


*XDIM_MEMBERSET CATEGORY=TEST

*XDIM_MEMBERSET CURRENCY=LC

*XDIM_MEMBERSET ENTITY=%ENTITIES%

*XDIM_ADDMEMBERSET ENTITY=%ENTITY_SET%

*XDIM_MEMBERSET ACCOUNT=ACC1

 

*WHEN ENTITY.TYPE_SOC
*IS "Y"

*REC(EXPRESSION=-1*GET(ACCOUNT=ACC1),ACCOUNT="DESTINATION")

*COMMIT

 

The thing is that with CALCULATE_DIFFERENCE = 0 i'm getting zero values (2900 RECORDS) and the

performance is worse... so is this the only solution?

 

thanks again arnold

 

Message was edited by: Mariano From the Tower


Viewing all articles
Browse latest Browse all 8689


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