Rules
Posted: Tue Aug 10, 2010 12:55 pm
Hi,
I want to write a rule that calculates the amount (price) of a product according to the previous period's price multiplied by the percentage increase in his current term.
I want that element Medidas_Precio Amount of dimension can only type in the value of the initial period. Also will be able to type in the values of the percentages. Therefore, I want to write the rule would give me the rest of the values of the following months.
I put this rule does not work: ['Importe']=N:DB('Precios',DIMNM('Periodos',(DIMIX('Periodos',!Periodos)-1)),!ProductsDimension,!Versiones,!Year,!Medidas_Precio)*['Porcentaje','Forecast'];
You can do the following but I do it only in a formula:
#['Importe','Jan']=['Importe','PerÃodo Inicial']*['Porcentaje','Jan'];
#['Importe','Feb']=['Importe','Jan']*['Porcentaje','Feb'];
#['Importe','Mar']=['Importe','Feb']*['Porcentaje','Mar'];
#['Importe','Abr']=['Importe','Mar']*['Porcentaje','Abr'];
#['Importe','May']=['Importe','Abr']*['Porcentaje','May'];
#['Importe','Jun']=['Importe','May']*['Porcentaje','Jun'];
#['Importe','Jul']=['Importe','Jun']*['Porcentaje','Jul'];
#['Importe','Ago']=['Importe','Jul']*['Porcentaje','Ago'];
#['Importe','Sep']=['Importe','Ago']*['Porcentaje','Sep'];
#['Importe','Oct']=['Importe','Sep']*['Porcentaje','Oct'];
#['Importe','Nov']=['Importe','Oct']*['Porcentaje','Nov'];
#['Importe','Dec']=['Importe','Nov']*['Porcentaje','Dec'];
I present an image that represents a little of what I'm doing.
Thank you very much
Regards
I want to write a rule that calculates the amount (price) of a product according to the previous period's price multiplied by the percentage increase in his current term.
I want that element Medidas_Precio Amount of dimension can only type in the value of the initial period. Also will be able to type in the values of the percentages. Therefore, I want to write the rule would give me the rest of the values of the following months.
I put this rule does not work: ['Importe']=N:DB('Precios',DIMNM('Periodos',(DIMIX('Periodos',!Periodos)-1)),!ProductsDimension,!Versiones,!Year,!Medidas_Precio)*['Porcentaje','Forecast'];
You can do the following but I do it only in a formula:
#['Importe','Jan']=['Importe','PerÃodo Inicial']*['Porcentaje','Jan'];
#['Importe','Feb']=['Importe','Jan']*['Porcentaje','Feb'];
#['Importe','Mar']=['Importe','Feb']*['Porcentaje','Mar'];
#['Importe','Abr']=['Importe','Mar']*['Porcentaje','Abr'];
#['Importe','May']=['Importe','Abr']*['Porcentaje','May'];
#['Importe','Jun']=['Importe','May']*['Porcentaje','Jun'];
#['Importe','Jul']=['Importe','Jun']*['Porcentaje','Jul'];
#['Importe','Ago']=['Importe','Jul']*['Porcentaje','Ago'];
#['Importe','Sep']=['Importe','Ago']*['Porcentaje','Sep'];
#['Importe','Oct']=['Importe','Sep']*['Porcentaje','Oct'];
#['Importe','Nov']=['Importe','Oct']*['Porcentaje','Nov'];
#['Importe','Dec']=['Importe','Nov']*['Porcentaje','Dec'];
I present an image that represents a little of what I'm doing.
Thank you very much
Regards