Forum Discussion
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
- tex628Community 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_kafaliHelper 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
Entitiy Volume (ton)
OK_INVOICE_EXCELVolume (ton)
PARETOA 11.124 11.824 B 4.893 4.893 C 1.600 1.600 D 24 24 E 87 87 F 47 47 G -3.825 -7.099 Grand Total 13.950 13.950 - tex628Community 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]