LAMBDA Examples: Pareto (español)

%3CLINGO-SUB%20id%3D%22lingo-sub-2101510%22%20slang%3D%22es-ES%22%3ELAMBDA%20Examples%3A%20Pareto%20(English)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2101510%22%20slang%3D%22es-ES%22%3E%3CP%3EHello%20everyone%20Can%20it%20be%20improved%3F%3C%2FP%3E%3CP%3E%3CA%20title%3D%22Pareto%20LAMBDA%22%20href%3D%22https%3A%2F%2F1drv.ms%2Fx%2Fs!AnhiD1jDp7ELhbEQ7SpNnplJxaO2HQ%3Fe%3DWrAnr6%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EExcel%20Sheet%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%3DLAMBDA(vInd0%3BvIndX%3BvData0%3BvDataX%3BvDataN%3BCONCAT(TEXTO(CONTARA(vInd0%3AvIndX)-1%3B%220000%22)%3B%22%C2%BA%20-%22%3BSI(SUBTOTALES(109%3BvData0%3AvDataX)%2FSUBTOTALES(109%3BvDataN)%26lt%3B80%25%3B%22A%22%3BSI(SUBTOTALES(109%3BvData0%3AvDataX)%2FSUBTOTALES(109%3BvDataN)%26gt%3B%3D95%25%3B%22C%22%3B%22B%22))%3B%22%20-%20%22%3BTEXTO(SUBTOTALES(109%3BvData0%3AvDataX)%2FSUBTOTALES(109%3BvDataN)%3B%22%23%23%23%2C000%25%22)))(Tabla1%5B%5B%23Encabezados%5D%3B%5BConcepto%5D%5D%3B%5B%40Concepto%5D%3BTabla1%5B%5B%23Encabezados%5D%3B%5BValor%5D%5D%3B%5B%40Valor%5D%3B%5BValor%5D)%3C%2FCODE%3E%3C%2FPRE%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%3DPareto_Lambda(Tabla1%5B%5B%23Encabezados%5D%3B%5BConcepto%5D%5D%3B%5B%40Concepto%5D%3BTabla1%5B%5B%23Encabezados%5D%3B%5BValor%5D%5D%3B%5B%40Valor%5D%3B%5BValor%5D)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20regards.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2101510%22%20slang%3D%22es-ES%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Contributor

Hola a todos ¿Se puede mejorar?

Hoja de Excel 

 

 

=LAMBDA(vInd0;vIndX;vData0;vDataX;vDataN;CONCAT(TEXTO(CONTARA(vInd0:vIndX)-1;"0000");"º -";SI(SUBTOTALES(109;vData0:vDataX)/SUBTOTALES(109;vDataN)<80%;"A";SI(SUBTOTALES(109;vData0:vDataX)/SUBTOTALES(109;vDataN)>=95%;"C";"B"));" - ";TEXTO(SUBTOTALES(109;vData0:vDataX)/SUBTOTALES(109;vDataN);"###,000%")))(Tabla1[[#Encabezados];[Concepto]];[@Concepto];Tabla1[[#Encabezados];[Valor]];[@Valor];[Valor])
=Pareto_Lambda(Tabla1[[#Encabezados];[Concepto]];[@Concepto];Tabla1[[#Encabezados];[Valor]];[@Valor];[Valor])

 

 

Saludos.

0 Replies