Forum Discussion

i_kafali's avatar
i_kafali
Helper II
8 years ago

SELECTCOLUMNS does not return correct values from existing table

Hello,

 

I have an existing table called OK_INVOICE_ALL_EXCEL. so i have created new table called PARETO to make more lean table.

 

To create PARETO table i used below formula

 

PARETO = SELECTCOLUMNS(OK_INVOICE_ALL_EXCEL;"currency";OK_INVOICE_ALL_EXCEL[Currency Selection];"year";OK_INVOICE_ALL_EXCEL[Only Year];"month";OK_INVOICE_ALL_EXCEL[MONTH];"scenario";OK_INVOICE_ALL_EXCEL[Fiili/Bütçe];"entity";OK_INVOICE_ALL_EXCEL[FIRMA];"seller";OK_INVOICE_ALL_EXCEL[SAT_AD];"customer no";OK_INVOICE_ALL_EXCEL[CUSTOMER_NO];"customer";OK_INVOICE_ALL_EXCEL[MUS_AD];"product";OK_INVOICE_ALL_EXCEL[DESCRIPTION];"BU";OK_INVOICE_ALL_EXCEL[BU];"volume (ton)";[Volume (ton)];"Turnover";[TurnoverPV];"FP1";[FP1];"FP2";[FP2])

 

at the end of the results some fields does not return correct values. for instance some entities returns corrrect values and some returns totally nonsense figures

 

what else should i do?

 

Best regards,

23 Replies

  • tex628's avatar
    tex628
    Community Champion
    PARETO = SELECTCOLUMNS(OK_INVOICE_ALL_EXCEL;
    "currency";OK_INVOICE_ALL_EXCEL[Currency Selection];
    "year";OK_INVOICE_ALL_EXCEL[Only Year];
    "month";OK_INVOICE_ALL_EXCEL[MONTH];
    "scenario";OK_INVOICE_ALL_EXCEL[Fiili/Bütçe];
    "entity";OK_INVOICE_ALL_EXCEL[FIRMA];
    "seller";OK_INVOICE_ALL_EXCEL[SAT_AD];
    "customer no";OK_INVOICE_ALL_EXCEL[CUSTOMER_NO];
    "customer";OK_INVOICE_ALL_EXCEL[MUS_AD];
    "product";OK_INVOICE_ALL_EXCEL[DESCRIPTION];
    "BU";OK_INVOICE_ALL_EXCEL[BU];
    "volume (ton)";[Volume (ton)];
    "Turnover";[TurnoverPV];
    "FP1";[FP1];
    "FP2";[FP2]
    )

    Does all columns produce inconsistant values or can you see any pattern? 

    • i_kafali's avatar
      i_kafali
      Helper II

      Hi tex628

       

      Not all columns returns incosistent figures but especially some entities and some products returns incosistent figures

       

      For instance G entity returns -7099 tons whereas it should be -3825

       

      Under that entity, all products returns incosistent values

       

      EntitiyVolume (ton)
      OK_INVOICE_EXCEL
      Volume (ton)
      PARETO
      A11.12411.824
      B4.8934.893
      C1.6001.600
      D2424
      E8787
      F4747
      G-3.825-7.099
      Grand Total13.95013.950
      • tex628's avatar
        tex628
        Community Champion

        From what i can tell your "PARETO" table is a combination of columns from the OK_INVOICE_ALL_EXCEL table and four different measures. Is it only the measure values that display incorrect values?

         

        "volume (ton)";[Volume (ton)];
        "Turnover";[TurnoverPV];
        "FP1";[FP1];
        "FP2";[FP2]