Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

Reply
Eli_r06
New Member

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:

Eli_r06_0-1673062262257.png

 

Agradezco su comentarios.

 

2 REPLIES 2
Eli_r06
New 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.

 

AlB
Super User
Super User

Hi @Eli_r06 

Can you share the table Origen (best in a pbix) so that we can reproduce the problem and find a solution?

 

SU18_powerbi_badge

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.

 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.