cancel
Showing results for 
Search instead for 
Did you mean: 

Valuing dimensions with members # using already available rows

andreag412
Explorer
0 Kudos
265

Dear experts,
I would need some help with the development of a Data Action.
After a first step of Cross-Model Copy the row situation is as follows:

ViewEntityMarketProductsCustomerChannelSales CategoryIntercompanyDistr. FlowNet Sales (Local)Std Cost EoL (Local)Std Cost Mark Up Reverse (Local)
#V10VNProd1DEALERRETCOMMON#STOCK10000
#V10#Prod1#####5000

I have taken 2 rows as an example, the purpose would be to go and “merge” the two rows. So with end result the following:

ViewEntityMarketProductsCustomerChannelSales CategoryIntercompanyDistr. FlowNet Sales (Local)Std Cost EoL (Local)Std Cost Mark Up Reverse (Local)
#V10VNProd1DEALERRETCOMMON#STOCK100005000

Do you have any advice on how this can be done?

Thanks for the help

View Entire Topic
andreag412
Explorer
0 Kudos

HI @MichalCK,

Thanks for the help, I have implemented this logic:
 

 

VARIABLEMEMBER #Customer OF [d/Customer]
VARIABLEMEMBER #Channel OF [d/Channel]
VARIABLEMEMBER #Scat OF [d/SalesCateg]
VARIABLEMEMBER #Market OF [d/Market]
VARIABLEMEMBER #DF OF [d/DistributionFlow]

DATA([d/Customer] = #Customer,
	 [d/Channel] = #Channel,
	 [d/SalesCateg] = #Scat,
	 [d/DistributionFlow] = #DF,
	 [d/Market] = #Market) = RESULTLOOKUP()

IF RESULTLOOKUP([d/Measures] = "NET_SALES_LOCAL") != NULL THEN
	DATA([d/Measures] = "STD_COST_EOL_LOCAL") = RESULTLOOKUP([d/Customer] = #Customer,
															 [d/Channel] = #Channel,
															 [d/SalesCateg] = #Scat,
															 [d/DistributionFlow] = #DF,
															 [d/Market] = #Market,
															 [d/Measures] = "STD_COST_EOL_LOCAL")
	DATA([d/Measures] = "STD_COST_MKUP_REV_LOCAL") = RESULTLOOKUP([d/Customer] = #Customer,
																  [d/Channel] = #Channel,
																  [d/SalesCateg] = #Scat,
																  [d/DistributionFlow] = #DF,
																  [d/Market] = #Market,
																  [d/Measures] = "STD_COST_MKUP_REV_LOCAL")
ENDIF

 

 
But we don't get the desired result, because the table shows:
 
ViewEntityMarketProductsCustomerChannelSales CategoryIntercompanyDistr. FlowNet Sales (Local)Std Cost EoL (Local)Std Cost Mark Up Reverse (Local)
#V10VNProd1DEALERRETCOMMON#STOCK10000
#V10#Prod1#####500500500