on 10-11-2010 8:51 PM
Hi i have the folowing code
GET(CONTAVENDAS="PERCVOLUMECORP",FONTEDADO="INPUT",TEMPO="2011.INP",PRODUTO="%SPECIE%_IN",CANAL="NACANAL",ORGCOMERCIAL="NAORGCOM")
When the value in the PERCVOLUMECORP account, is greater or equal to 1 let's say 80, the get function returns me the correct value, but when i have a value between 0 and one, for instance 0,25, the get function returns 0 (zero)
Any ideas?
Thanks in advance.
Leandro
Brasil
Here is the entire script
**SELECT(%ANO_BD_TRAB%,[YEAR],CATEGORIA,"ID='BDTRABALHO'")
**SELECT(%ANO_BD_TRAB1%,[YEAR]+1,CATEGORIA,"ID='BDTRABALHO'")
**SELECT(%ANO_BD_TRAB2%,[YEAR]+2,CATEGORIA,"ID='BDTRABALHO'")
**SELECT(%MES_INCIO%, STARTMTH, CATEGORIA, "ID='BDTRABALHO'")
**SELECT(%MESES%,[ID],TEMPO,"MONTHNUM>=%MES_INCIO% AND YEAR=%ANO_BD_TRAB% AND LEVEL='MONTH'")
**SELECT(%MESES1%,[ID],TEMPO,"MONTHNUM>=%MES_INCIO% AND YEAR=%ANO_BD_TRAB1% AND LEVEL='MONTH'")
**SELECT(%MESES2%,[ID],TEMPO,"MONTHNUM>=%MES_INCIO% AND YEAR=%ANO_BD_TRAB2% AND LEVEL='MONTH'")
**SELECT(%CONTAS%, [ID], CONTAVENDAS, "TOPDOWNALLOC='Y'")
*SELECT(%TODOSPROD%, [ID],PRODUTO,"GRUPO='PRODUTO'")
**SELECT(%SPECIES%, [ID],PRODUTO,"GRUPO='TIPOESPECIE' AND FLAG_TOPDA='N'")
**SELECT(%SPECIES_IN%, [ID],PRODUTO,"GRUPO='TIPOESPECIE' AND FLAG_TOPDA='Y'")
*XDIM_MEMBERSET TEMPO = %MESES%,%MESES1%,%MESES2%,%ANO_BD_TRAB%.INP,%ANO_BD_TRAB1%.INP,%ANO_BD_TRAB2%.INP
*XDIM_MEMBERSET CONTAVENDAS = %CONTAS%,PERCVOLUMECORP
*XDIM_MEMBERSET PRODUTO = %SPECIES%,%SPECIES_IN%,%TODOSPROD%
*OLAPLOOKUP VENDAS
*DIM FONTEDADO="INPUT"
*DIM TEMPO="2011.INP"
*DIM PRODUTO="C_IN"
*DIM CANAL="NACANAL"
*DIM ORGCOMERCIAL="NAORGCOM"
*DIM PERCVOL:CONTAVENDAS="PERCVOLUMECORP"
*ENDLOOKUP
*FOR %CONTA% = VOLUME
*FOR %MES% = 2011.JAN
*FOR %SPECIE% = C AND %SPECIENAME% = CERVEJAS
*WHEN PRODUTO.SPECIETYPE
*IS "%SPECIENAME%"
*WHEN CONTAVENDAS
*IS "%CONTA%"
*WHEN TEMPO
*IS "%MES%"
*REC(CONTAVENDAS="%CONTA%",EXPRESSION=LOOKUP(PERCVOL))
*ENDWHEN
*ENDWHEN
*ENDWHEN
*NEXT
*NEXT
*NEXT
*COMMIT
Thanks is advance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nilanjan,
In the report i get the same value that is in the table, just when calculating thru the script that i get ZERO.
It's really wierd, if the value is above 1, works just fine, between 0 and 0,99 i get ZERO back.
This is pissing me off so badly..
One question, i always see you guys talking about BPC parameters, changing from 1 to 0, yes to no, where do i find those paramters?
I wanna see if there is anything there to help me, cuse i don't know elsewhere to look.
Thanks
Leandro
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Leandro,
Can you please share the entire script? It will help us to identify the source of the issue. This is really strange that the data is coming properly in the report, but not in script.
Please go to http://<servername>/osoft and then go to BPC admin. There you will be able to see appset parameters and application parameters.
Hope this helps.
Hi Leandro,
This is quite strange. You have the data available in the table, but still, you are not able to retrieve it. Can you check in the report with the same combination, what data are you getting in the report? If you are still getting 0, then problem with the system. If you are getting the same data as in the table then problem in the script. Let us know your findings, we will try to track down the source of teh problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Tried this
*OLAPLOOKUP VENDAS
*DIM FONTEDADO="INPUT"
*DIM TEMPO="2011.INP"
*DIM PRODUTO="C_IN"
*DIM CANAL="NACANAL"
*DIM ORGCOMERCIAL="NAORGCOM"
*DIM PERCVOL:CONTAVENDAS="PERCVOLUMECORP"
*ENDLOOKUP
It behaviored the same way.
Any ideas?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
15 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.