Forum Discussion
dirkhiggler
8 years agoNew Member
Cannot convert value "0" to type table
Hi all, I've searched high and low but haven't been able to find a solution to my exact problem, which is similar to a number of other posts, but not the same from what I can see. I'm pulling...
- 8 years ago
You may try to change it as follows.
#"Expanded defect_2" = Table.ExpandListColumn(Table.ReplaceValue(#"Expanded additional_photos_if_required.record" , each [defect_2] , each if Value.Is([defect_2], type list) then [defect_2] else {} , Replacer.ReplaceValue , {"defect_2"}) , "defect_2")
v-chuncz-msft
Community Support
8 years ago
You may try to change it as follows.
#"Expanded defect_2" = Table.ExpandListColumn(Table.ReplaceValue(#"Expanded additional_photos_if_required.record"
, each [defect_2]
, each if Value.Is([defect_2], type list) then [defect_2] else {}
, Replacer.ReplaceValue
, {"defect_2"})
, "defect_2")dirkhiggler
8 years agoNew Member
Hi v-chuncz-msft,
Thanks very much for your help, that has solved the problem very elegantly.
Regards,
Iain