Skip to Content
author's profile photo Former Member
Former Member

GET function fails to get values between 1 and 0

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 11, 2010 at 09:04 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 12, 2010 at 09:33 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2010 at 11:29 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2010 at 11:49 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.