Forum Discussion
Expression.Error: We cannot convert the value " xxxx" to type Table.
- 4 years ago
Hi everybody,
I could solve the issue by transforming the column "Description" containing both tables and texts before expanding it with the following code:
#"Lists from description" = Table.TransformColumns(#"Expanded specdocument.specobjects.specobject.oreqmViolations",{{"specdocument.specobjects.specobject.description", each if _ is table then Table.ToList(_) else {_}}}),
#"Expanded specdocument.specobjects.specobject.description" = Table.ExpandListColumn(#"Lists from description", "specdocument.specobjects.specobject.description")I based on this link -> https://community.powerbi.com/t5/Desktop/Expand-Column-Containing-Some-Tables/m-p/409196
Thank you anyway.
José
Hi everybody,
I could solve the issue by transforming the column "Description" containing both tables and texts before expanding it with the following code:
#"Lists from description" = Table.TransformColumns(#"Expanded specdocument.specobjects.specobject.oreqmViolations",{{"specdocument.specobjects.specobject.description", each if _ is table then Table.ToList(_) else {_}}}),
#"Expanded specdocument.specobjects.specobject.description" = Table.ExpandListColumn(#"Lists from description", "specdocument.specobjects.specobject.description")
I based on this link -> https://community.powerbi.com/t5/Desktop/Expand-Column-Containing-Some-Tables/m-p/409196
Thank you anyway.
José
- ahsieh4 years agoNew Member
ooh, that's a great solution. I could use this as well.