Aplicar función a cada valor de una lista de columna virtual

No he podido encontrar solución al siguiente problema:
Al leer un código de barras de 14 dígitos puedo extraer los 6 dígitos centrales de mi interes con la función “MID” de esta forma:
MID([LECTOR],2,6))

Quiero hacer lo mismo para una lista de valores delimitada por comas de una columna virtual en la que tengo “n” valores de 14 dígitos pero requiero extraer esos 6 digitos centrales de cada valor.
Alguna propuesta?

Intenté anidar la misma función en un SPLIT
pero solo me devuelve el primer valor de la lista
SPLIT(MID([LECTOR],2,6), " , ")

1 Like

There is no good way to do this.

Sólo como una idea

Estas familiarizado con las acciones en bucle? creo que puedes lograr tu objetivo usándo este concepto, si no sabes a que me refiero te dejo este video de @MultiTech , está muy bien explicado https://www.youtube.com/watch?v=ptbFTXrbiCg&ab_channel=MultiTechVisions

2 Likes

I kinda figured you’d suggest this one @Steve

1 Like

It is “a” solution, but I wouldn’t call that a “good” solution.

What else would you do?

If you were to solve this using python or something, you’d still do a foreach() or something

1 Like

@Kabuliño & @Steve

Thanks for the advices.

First, i tried with loop actions but sync time grew up to much.

Finally, i used FIND function to define the list of values to use as start-position in MID function and i rewrite MID function n times.

I’m not sure that is the best solution, but sync time improve

1 Like