Forum Discussion
Error de coincidencia detectados
Hola comunidad! Les agradezco de antemano sus recomendaciones y apoyo sincero para resolver el siguiente error, cuando he actualizado la tabla Datos me indica que existe un error de coincidencia y para repararlo, me genera una nueva columna indice, he revisado la tabla y no encuentro las filas con errores, luego elimine el paso de tipo cambiado y lo volvi a realizar teniendo cuidado que no sea un error por tipo, pero el error persiste, hasta el momento no he encontrado la forma de resolverlo. Aqui lo que me aparece:
= let
tableWithOnlyPrimitiveTypes = Table.SelectColumns(Origen, Table.ColumnsOfType(Origen, {type nullable number, type nullable text, type nullable logical, type nullable date, type nullable datetime, type nullable datetimezone, type nullable time, type nullable duration})),
recordTypeFields = Type.RecordFields(Type.TableRow(Value.Type(tableWithOnlyPrimitiveTypes))),
fieldNames = Record.FieldNames(recordTypeFields),
fieldTypes = List.Transform(Record.ToList(recordTypeFields), each [Type]),
pairs = List.Transform(List.Positions(fieldNames), (i) => {fieldNames{i}, (v) => if v = null or Value.Is(v, fieldTypes{i}) then v else error [Message = "El tipo del valor no coincide con el tipo de la columna.", Detail = v], fieldTypes{i}})
in
Table.TransformColumns(Origen, pairs)
los pasos en la consulta:
Agradezco su comentarios.
2 Replies
- AlB
Community Champion
Hi Eli_r06
Can you share the table Origen (best in a pbix) so that we can reproduce the problem and find a solution?
Please accept the solution when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
- Eli_r06New Member
Hi AIB!
Thanks for your answer, I found the problem, it was 124 files that had #N/A and power bi doesn´t recognize it.