Hi all,
sorry if I didn't give more details about it but I have good news!!
I was finally able to make the rule work, actually it was correct from the start but for some reason the result was always 0.. so i decided to write it from scratch and it worked.
I'm giving more details for future reference
cube 1:
AV_5100_Budget_Segmento
AV_SCN_Scenario_BDG
AV_TIME_Mesi
AV_PDV_PuntodiVenditaBDG
AV_PRD_Prodotto
AV_MAG_Magazzino
AV_VAR_AdjustemntsBDG
AV_VAR_VenditeBDG
cube2:
AV_6000_Cruscotto
AV_SCN_Scenario
AV_TIME_Cruscotto
AV_MAG_Cruscotto
AV_PRD_Cruscotto
AV_VAR_TipoData
AV_ADJ_Cruscotto
AV_VAR_Cruscotto
AV_PRD_Prodotto, which contains the products, has an attribute "Category" indicating the product in the AV_PRD_Cruscotto.
So i cretaed a VH because i need a consolidated element that groups the AV_PRD_Prodotto elements
The rule i wrote:
Code: Select all
##Category
['UL_BDG_Totale_Perc','Base', 'Totale_magazzino'] = N: if (ELISANC('AV_PRD_Cruscotto', 'Totale Category',!AV_PRD_Cruscotto) > 0
,
DB('AV_5100_Budget_Segmento', ATTRS('AV_SCN_Scenario', !AV_SCN_Scenario, 'Scenario_BDG_Confronto'), 'Totale Anno', 'Totale PDV','Category':!AV_PRD_Cruscotto,!AV_MAG_Cruscotto,'Totale','UL_Totale_Perc')
, CONTINUE
);
thanks to all
regards